From e1ba5eb137743017dfe54a1cec6d6571ed1e905c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 27 Jun 2019 10:08:42 +0200 Subject: [PATCH] Correctly terminate a Comm which is failing immediately. Address https://framagit.org/simgrid/simgrid/issues/26 --- src/kernel/activity/CommImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1