X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/48d16e98696450e0dc1ae85cfb8f84b41d15b409..a6000ad7bbc454d82a7802443dcf55d755baf058:/src/msg/msg_task.cpp diff --git a/src/msg/msg_task.cpp b/src/msg/msg_task.cpp index 803c9db153..9a231b5477 100644 --- a/src/msg/msg_task.cpp +++ b/src/msg/msg_task.cpp @@ -134,6 +134,7 @@ msg_error_t Task::send(std::string alias, double timeout) msg_error_t ret = MSG_OK; /* Try to send it */ try { + comm = nullptr; // needed, otherwise MC gets confused. s4u::CommPtr s4u_comm = send_async(alias, nullptr, false); comm = s4u_comm; comm->wait_for(timeout);