From: Arnaud Giersch Date: Thu, 27 Jun 2019 08:08:42 +0000 (+0200) Subject: Correctly terminate a Comm which is failing immediately. X-Git-Tag: v3.23.2~68 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e1ba5eb137743017dfe54a1cec6d6571ed1e905c Correctly terminate a Comm which is failing immediately. Address https://framagit.org/simgrid/simgrid/issues/26 --- diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index 4a1c8f63ec..bff989f0e9 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -443,7 +443,7 @@ CommImpl* CommImpl::start() XBT_DEBUG("Communication from '%s' to '%s' failed to start because of a link failure", sender->get_cname(), receiver->get_cname()); state_ = SIMIX_LINK_FAILURE; - cleanupSurf(); + post(); } else if (src_actor_->is_suspended() || dst_actor_->is_suspended()) { /* If any of the process is suspended, create the synchro but stop its execution,