Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
It's the least I can do in a cancel function...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Feb 2010 23:17:57 +0000 (23:17 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Feb 2010 23:17:57 +0000 (23:17 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7049 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/network.c

index 384734d..ecd6d4e 100644 (file)
@@ -181,6 +181,8 @@ static int net_action_unref(surf_action_t action)
 
 static void net_action_cancel(surf_action_t action)
 {
+  surf_network_model->action_state_set((surf_action_t) action,
+                                       SURF_ACTION_FAILED);
   return;
 }