From: Frederic Suter Date: Thu, 16 Feb 2017 10:36:21 +0000 (+0100) Subject: Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid X-Git-Tag: v3_15~347 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/84ccd6fb41f2ffc33e8dad38d2357ecbb2df9038?hp=2f00ca10d6d43a00e35039c4b64317042c933e82 Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid --- diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index 63171c5247..c17b27bb90 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -639,13 +639,18 @@ void SIMIX_comm_finish(smx_activity_t synchro) if(comm->dst_proc) xbt_fifo_remove(comm->dst_proc->comms, synchro); } - if(simcall->issuer == comm->dst_proc){ + else if(simcall->issuer == comm->dst_proc){ if(comm->src_proc) xbt_fifo_remove(comm->src_proc->comms, synchro); //in case of a detached comm we have an extra ref to remove, as the sender won't do it destroy_count++; } + else{ + xbt_fifo_remove(comm->dst_proc->comms, synchro); + xbt_fifo_remove(comm->src_proc->comms, synchro); + } } + SIMIX_simcall_answer(simcall); destroy_count++; }