Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use activity cancel, not the action cancel
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 3 Apr 2019 06:58:41 +0000 (08:58 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 3 Apr 2019 06:58:41 +0000 (08:58 +0200)
src/kernel/actor/ActorImpl.cpp

index 3f63777..8f78d87 100644 (file)
@@ -217,8 +217,7 @@ void ActorImpl::exit()
       if (i != waiting_synchro->simcalls_.end())
         waiting_synchro->simcalls_.remove(&simcall);
     } else if (sleep != nullptr) {
-      if (sleep->surf_action_)
-        sleep->surf_action_->cancel();
+      sleep->cancel();
       sleep->post();
     } else if (raw != nullptr) {
       raw->finish();