X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a5da20e6d4fc6ad5b4a96b72d979a48b999838b2..2a4e0832d58c384b44501fea364c650327b830f9:/src/simix/smx_network.cpp diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index e3cc2047d2..ed7189c6d9 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -624,9 +624,6 @@ void SIMIX_comm_finish(smx_activity_t synchro) } } - if (simcall->issuer->host_->is_off()) - simcall->issuer->context_->iwannadie = true; - simcall->issuer->waiting_synchro = nullptr; simcall->issuer->comms.remove(synchro); if(comm->detached){ @@ -643,7 +640,10 @@ void SIMIX_comm_finish(smx_activity_t synchro) } } - SIMIX_simcall_answer(simcall); + if (simcall->issuer->host_->is_off()) + simcall->issuer->context_->iwannadie = true; + else + SIMIX_simcall_answer(simcall); } }