X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fb2f54c35266af4042c56102ec1ad27e2cab321..76a1aca27f2d297e488b055f400847f91b8f8559:/src/s4u/s4u_comm.cpp?ds=sidebyside diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index 7729d3e6f9..17a66b6ded 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -179,8 +179,9 @@ void Comm::cancel() bool Comm::test() { xbt_assert(state_ == inited || state_ == started || state_ == finished); - if (state_ == finished) - xbt_die("Don't call test on a finished comm."); + if (state_ == finished) { + return true; + } if (state_ == inited) { this->start();