Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bug fix (found by Cyril Banino).
[simgrid.git] / src / msg / gos.c
index 76d4dac..a774a0f 100644 (file)
@@ -53,7 +53,10 @@ static MSG_error_t __MSG_task_get_with_time_out_from_host(m_task_t * task,
        xbt_fifo_foreach(h->simdata->mbox[channel],item,t,m_task_t) {
          if(t->simdata->source==host) break;
        }
-       if(item) break;
+       if(item) {
+         xbt_fifo_remove_item(h->simdata->mbox[channel],item);
+         break;
+       } 
       }
     }