Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better split between the cleanups from self and the ones from the kernel (ie on maest...
[simgrid.git] / src / s4u / s4u_Actor.cpp
index 751f333..1d563c4 100644 (file)
@@ -112,7 +112,7 @@ void Actor::join(double timeout) const
   kernel::actor::ActorImpl* issuer = kernel::actor::ActorImpl::self();
   const kernel::actor::ActorImpl* target = pimpl_;
   kernel::actor::simcall_blocking([issuer, target, timeout] {
-    if (target->finished_) {
+    if (target->context_->wannadie()) {
       // The joined actor is already finished, just wake up the issuer right away
       issuer->simcall_answer();
     } else {