Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add one more state to assert.
[simgrid.git] / src / s4u / s4u_Comm.cpp
index b088052..14501e9 100644 (file)
@@ -225,7 +225,8 @@ Comm* Comm::cancel()
 
 bool Comm::test()
 {
-  xbt_assert(state_ == State::INITED || state_ == State::STARTED || state_ == State::FINISHED);
+  xbt_assert(state_ == State::INITED || state_ == State::STARTED || state_ == State::STARTING ||
+             state_ == State::FINISHED);
 
   if (state_ == State::FINISHED)
     return true;