X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a3d08dd00246eb26ced68c5b0e046096706bbe23..a4e7a60bca6c13451f237201eb5a7534e5da0838:/src/surf/network_constant.cpp diff --git a/src/surf/network_constant.cpp b/src/surf/network_constant.cpp index 35a66b6bd0..1f97acca37 100644 --- a/src/surf/network_constant.cpp +++ b/src/surf/network_constant.cpp @@ -66,10 +66,9 @@ void NetworkConstantModel::updateActionsState(double /*now*/, double delta) if (action->getMaxDuration() != NO_MAX_DURATION) action->updateMaxDuration(delta); - if (((action->getRemainsNoUpdate() <= 0) || - ((action->getMaxDuration() != NO_MAX_DURATION) && (action->getMaxDuration() <= 0)))) { - action->finish(); - action->setState(Action::State::done); + if ((action->getRemainsNoUpdate() <= 0) || + ((action->getMaxDuration() != NO_MAX_DURATION) && (action->getMaxDuration() <= 0))) { + action->finish(Action::State::done); } } }