X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e4b1ccbbce41e237bdf8a43037e21a1cdac314d..c533259777a80ef9daddc0a5f9d0e265a289f1b0:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index b93d87482e..adfd9e389f 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -748,7 +748,7 @@ void SIMIX_process_yield(smx_actor_t self) std::rethrow_exception(std::move(exception)); } - if(SMPI_switch_data_segment){ + if (SMPI_switch_data_segment && !self->finished) { SMPI_switch_data_segment(self->pid); } }