Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: return after answering the request when running in MC mode.
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 20 Dec 2010 09:45:39 +0000 (09:45 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 20 Dec 2010 09:45:39 +0000 (09:45 +0000)
Othrewise it will answer the request twice.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9299 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_host.c

index afc406c..205c46b 100644 (file)
@@ -311,6 +311,7 @@ void SIMIX_pre_host_execution_wait(smx_req_t req)
   if (MC_IS_ENABLED){
     action->state = SIMIX_DONE;
     SIMIX_execution_finish(action);
+    return;
   }
 
   /* If the action is already finished then perform the error handling */