Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use activity cancel, not the action cancel
[simgrid.git] / src / kernel / actor / ActorImpl.cpp
index 3f6377734cc58cef51b3a59c78b00f01137b01db..8f78d87ea8ec215011cd24b3f6fc49e4e3a339a2 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();