Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename MSG_TIMEOUT_FAILURE into MSG_TIMEOUT for sake of logic
[simgrid.git] / src / bindings / ruby / rb_msg_task.c
index 7e1b4c6..acf5598 100644 (file)
@@ -86,7 +86,7 @@ void rb_task_send(VALUE class,VALUE task,VALUE mailbox) {
       rb_raise(rb_eRuntimeError,"Transfer failure while Sending");
     else if ( rv == MSG_HOST_FAILURE )
       rb_raise(rb_eRuntimeError,"Host failure while Sending");
-    else if ( rv == MSG_TIMEOUT_FAILURE )
+    else if ( rv == MSG_TIMEOUT )
       rb_raise(rb_eRuntimeError,"Timeout failure while Sending");
     else 
       rb_raise(rb_eRuntimeError,"MSG_task_send failed");