Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Somewhat redo commit df93dfaab8d79f5e08088aedc95dd2712cef4c70.
[simgrid.git] / src / kernel / actor / ActorImpl.cpp
index d3b4ebf..f50964b 100644 (file)
@@ -73,7 +73,7 @@ ActorImpl::ActorImpl(xbt::string name, s4u::Host* host) : host_(host), name_(std
 
 ActorImpl::~ActorImpl()
 {
-  if (not EngineImpl::get_instance()->is_maestro(this))
+  if (EngineImpl::has_instance() && not EngineImpl::get_instance()->is_maestro(this))
     s4u::Actor::on_destruction(*get_ciface());
 }