From: Christophe ThiƩry Date: Thu, 20 Oct 2011 06:39:03 +0000 (+0200) Subject: SIMIX_CANCELED is a more adapted state in SIMIX_comm_cancel() X-Git-Tag: exp_20120216~558^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8930125311f6b4d4bfa4447f5a5666210d0ceafb?ds=sidebyside SIMIX_CANCELED is a more adapted state in SIMIX_comm_cancel() --- diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 6b4922ff27..d5d4631509 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -716,7 +716,7 @@ void SIMIX_comm_cancel(smx_action_t action) /* so remove from it and delete it */ if (action->state == SIMIX_WAITING) { SIMIX_rdv_remove(action->comm.rdv, action); - action->state = SIMIX_FAILED; + action->state = SIMIX_CANCELED; } else if (!MC_IS_ENABLED && (action->state == SIMIX_READY || action->state == SIMIX_RUNNING)) {