Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics (and please scan-build about potential null surf_action_).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 14 Feb 2019 12:45:52 +0000 (13:45 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 15 Feb 2019 15:41:14 +0000 (16:41 +0100)
src/kernel/activity/CommImpl.cpp

index f16fe42..34e1545 100644 (file)
@@ -85,11 +85,10 @@ void CommImpl::start()
                 receiver->get_cname());
       state_ = SIMIX_LINK_FAILURE;
       cleanupSurf();
-    }
 
-    /* If any of the process is suspended, create the synchro but stop its execution,
-       it will be restarted when the sender process resume */
-    if (src_actor_->is_suspended() || dst_actor_->is_suspended()) {
+    } else if (src_actor_->is_suspended() || dst_actor_->is_suspended()) {
+      /* If any of the process is suspended, create the synchro but stop its execution,
+         it will be restarted when the sender process resume */
       if (src_actor_->is_suspended())
         XBT_DEBUG("The communication is suspended on startup because src (%s@%s) was suspended since it initiated the "
                   "communication",