X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b953989b8912a37ebf4b2dc526681bcef0562c5a..829feab0846888963a221e440643047fcc64adaa:/src/kernel/activity/SleepImpl.cpp diff --git a/src/kernel/activity/SleepImpl.cpp b/src/kernel/activity/SleepImpl.cpp index 1125eae034..2630930f22 100644 --- a/src/kernel/activity/SleepImpl.cpp +++ b/src/kernel/activity/SleepImpl.cpp @@ -48,6 +48,8 @@ void SleepImpl::post() } else if (surf_action_->get_state() == resource::Action::State::FINISHED) { state_ = State::DONE; } + + clean_action(); /* Answer all simcalls associated with the synchro */ finish(); } @@ -67,8 +69,6 @@ void SleepImpl::finish() simcall->issuer_->simcall_answer(); } } - - clean_action(); } } // namespace activity } // namespace kernel