Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correctly terminate a Comm which is failing immediately.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 27 Jun 2019 08:08:42 +0000 (10:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 27 Jun 2019 09:49:29 +0000 (11:49 +0200)
Address https://framagit.org/simgrid/simgrid/issues/26

src/kernel/activity/CommImpl.cpp

index 4a1c8f6..bff989f 100644 (file)
@@ -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;
       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,
 
     } else if (src_actor_->is_suspended() || dst_actor_->is_suspended()) {
       /* If any of the process is suspended, create the synchro but stop its execution,