Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bug fix (found by Cyril Banino).
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 20 Oct 2005 09:18:14 +0000 (09:18 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 20 Oct 2005 09:18:14 +0000 (09:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1761 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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;
        }
        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;
+       } 
       }
     }
                                                       
       }
     }