Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Completely remove detached comms when they are finished.
[simgrid.git] / src / kernel / activity / CommImpl.cpp
index e027255..ed8a0f4 100644 (file)
@@ -542,6 +542,9 @@ void CommImpl::finish()
   if (get_state() == State::DONE)
     copy_data();
 
+  if (detached_)
+    EngineImpl::get_instance()->get_maestro()->activities_.remove(this);
+
   while (not simcalls_.empty()) {
     actor::Simcall* simcall = simcalls_.front();
     simcalls_.pop_front();