From 7fc168cf0800508835142b5c41c0e60720d9e267 Mon Sep 17 00:00:00 2001 From: Fabien Chaix Date: Wed, 18 May 2022 17:26:28 +0300 Subject: [PATCH] Fix the addition of detached comms to maestro --- src/kernel/activity/CommImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index 143ebf80b6..87e8c5eeea 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -112,6 +112,7 @@ CommImpl& CommImpl::set_dst_buff(unsigned char* buff, size_t* size) CommImpl& CommImpl::detach() { detached_ = true; + EngineImpl::get_instance()->get_maestro()->activities_.emplace_back(this); return *this; } @@ -266,7 +267,6 @@ ActivityImplPtr CommImpl::isend(actor::CommIsendSimcall* observer) if (observer->is_detached()) { other_comm->detach(); other_comm->clean_fun = observer->get_clean_fun(); - EngineImpl::get_instance()->get_maestro()->activities_.emplace_back(other_comm); } else { other_comm->clean_fun = nullptr; observer->get_issuer()->activities_.emplace_back(other_comm); -- 2.20.1