Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Not sure of why it helps now
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Aug 2018 23:42:53 +0000 (01:42 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Aug 2018 23:42:53 +0000 (01:42 +0200)
src/kernel/context/Context.cpp

index dfa1791..ca6e447 100644 (file)
@@ -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;
 }