X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cad6c60193432c9ec59a758b4932a3bd67382d00..e3028ece642e1bd5b7594457a1782080110935b9:/src/kernel/activity/SemaphoreImpl.cpp diff --git a/src/kernel/activity/SemaphoreImpl.cpp b/src/kernel/activity/SemaphoreImpl.cpp index cf23116f27..f707757a2f 100644 --- a/src/kernel/activity/SemaphoreImpl.cpp +++ b/src/kernel/activity/SemaphoreImpl.cpp @@ -52,7 +52,7 @@ void SemAcquisitionImpl::finish() if (surf_action_->get_state() == resource::Action::State::FINISHED) { // The timeout elapsed if (granted_) { // but we got the semaphore, just in time! set_state(State::DONE); - + } else { // we have to report that timeout /* Remove myself from the list of interested parties */ auto issuer = get_issuer(); @@ -68,6 +68,7 @@ void SemAcquisitionImpl::finish() } } surf_action_->unref(); + surf_action_ = nullptr; } simcall->issuer_->waiting_synchro_ = nullptr;