X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/11af893fb278cc4b9b1fee154edbfdd0c6afce67..55a9b9fe5663cb2fe2398c14f0e9b11d4a31e3b3:/src/smpi/smpi_base.c diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index 9109101f17..2d6a64bbce 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -764,12 +764,11 @@ void smpi_mpi_wait(MPI_Request * request, MPI_Status * status) if ((*request)->action != NULL) { // this is not a detached send simcall_comm_wait((*request)->action, -1.0); - } - #ifdef HAVE_MC if(MC_is_active()) (*request)->action->comm.dst_data = NULL; // dangling pointer : dst_data is freed with a wait, need to set it to NULL for system state comparison #endif + } finish_wait(request, status); *request = MPI_REQUEST_NULL;