From 9d4b418f375dc8fca8b88d7d7eb69092e7f32891 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 4 Mar 2021 16:14:16 +0100 Subject: [PATCH 1/1] Cosmetics --- src/kernel/actor/ActorImpl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index e2eb1842fb..2b03fd7225 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -138,8 +138,7 @@ ActorImplPtr ActorImpl::attach(const std::string& name, void* data, s4u::Host* h void ActorImpl::detach() { auto* context = dynamic_cast(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(); -- 2.30.2