X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41ace32b5ffcd51fe79324b5353e5f1a6029d41e..4485d715fa3a090c1dd38def83ab8239feebecb3:/src/kernel/context/Context.cpp diff --git a/src/kernel/context/Context.cpp b/src/kernel/context/Context.cpp index 9d66f8c649..5831381222 100644 --- a/src/kernel/context/Context.cpp +++ b/src/kernel/context/Context.cpp @@ -86,7 +86,7 @@ void Context::stop() { actor_->finished_ = true; - if (actor_->auto_restart_ && actor_->host_->is_off()) { + if (actor_->auto_restart_ && not actor_->host_->is_on()) { XBT_DEBUG("Insert host %s to watched_hosts because it's off and %s needs to restart", actor_->host_->get_cname(), actor_->get_cname()); watched_hosts.insert(actor_->host_->get_cname());