Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A canceled Activity is a completed Activity too
[simgrid.git] / src / s4u / s4u_Io.cpp
index dd45f7a..926f269 100644 (file)
@@ -47,6 +47,7 @@ Io* Io::cancel()
 {
   simgrid::kernel::actor::simcall([this] { boost::static_pointer_cast<kernel::activity::IoImpl>(pimpl_)->cancel(); });
   state_ = State::CANCELED;
+  on_completion(*this);
   return this;
 }