Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring with an ActivityImpl::clean_action() method
[simgrid.git] / src / kernel / activity / ExecImpl.cpp
index 0e4d8ed..5c12267 100644 (file)
@@ -164,10 +164,8 @@ void ExecImpl::post()
 
   on_completion(*this);
 
 
   on_completion(*this);
 
-  if (surf_action_) {
-    surf_action_->unref();
-    surf_action_ = nullptr;
-  }
+  clean_action();
+
   if (timeout_detector_) {
     timeout_detector_->unref();
     timeout_detector_ = nullptr;
   if (timeout_detector_) {
     timeout_detector_->unref();
     timeout_detector_ = nullptr;