X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/208924f0b511eb55c98c74a56a9d9e6b7430c370..a52c8775ea7ebcaa71502834b796e29623f8d320:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index 2ba058768f..e281bf7127 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -517,7 +517,8 @@ int MSG_comm_testany(xbt_dynar_t comms) */ void MSG_comm_destroy(msg_comm_t comm) { - if (SIMIX_req_comm_get_src_proc(comm) != SIMIX_process_self()) { + if (SIMIX_req_comm_get_src_proc(comm) != SIMIX_process_self() + && MSG_comm_get_status(comm) == MSG_OK) { m_task_t task; task = (m_task_t) SIMIX_req_comm_get_src_buff(comm); task->simdata->isused=0;