Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the instructions on how to use local installs of python bindings
[simgrid.git] / src / plugins / task.cpp
index c84f83dd44dcb58a11936c1375cbe4342968eda4..dca0c9013d3ebb4cc02321a032447eb96b31b563 100644 (file)
@@ -82,6 +82,8 @@ void Task::complete()
   count_++;
   on_this_end_(this);
   Task::on_end(this);
+  if (current_activity_)
+    previous_activity_ = std::move(current_activity_);
   for (auto const& t : successors_)
     t->receive(this);
   if (ready_to_run())