Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Action::finish() is never used without setState().
[simgrid.git] / src / surf / network_constant.cpp
index 35a66b6..dcbc87f 100644 (file)
@@ -68,8 +68,7 @@ void NetworkConstantModel::updateActionsState(double /*now*/, double delta)
 
     if (((action->getRemainsNoUpdate() <= 0) ||
          ((action->getMaxDuration() != NO_MAX_DURATION) && (action->getMaxDuration() <= 0)))) {
-      action->finish();
-      action->setState(Action::State::done);
+      action->finish(Action::State::done);
     }
   }
 }