Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Mar 2021 15:14:16 +0000 (16:14 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 4 Mar 2021 15:30:52 +0000 (16:30 +0100)
src/kernel/actor/ActorImpl.cpp

index e2eb184..2b03fd7 100644 (file)
@@ -138,8 +138,7 @@ ActorImplPtr ActorImpl::attach(const std::string& name, void* data, s4u::Host* h
 void ActorImpl::detach()
 {
   auto* context = dynamic_cast<context::AttachContext*>(context::Context::self());
-  if (context == nullptr)
-    xbt_die("Not a suitable context");
+  xbt_assert(context != nullptr, "Not a suitable context");
 
   context->get_actor()->cleanup();
   context->attach_stop();