From: Martin Quinson Date: Sun, 26 Aug 2018 23:42:53 +0000 (+0200) Subject: Not sure of why it helps now X-Git-Tag: v3_21~153 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4a103ee1b08b31d6989348517f033233ef6710a3 Not sure of why it helps now --- diff --git a/src/kernel/context/Context.cpp b/src/kernel/context/Context.cpp index dfa1791933..ca6e447534 100644 --- a/src/kernel/context/Context.cpp +++ b/src/kernel/context/Context.cpp @@ -80,7 +80,8 @@ void Context::stop() this->process_->suspended_ = 0; this->iwannadie = false; - simgrid::simix::simcall([this] { SIMIX_process_cleanup(this->process_); }); + if (not this->process_->finished_) // It seems that we sometimes try to destroy an actor twice + simgrid::simix::simcall([this] { SIMIX_process_cleanup(this->process_); }); this->iwannadie = true; }