From c913a2bc465457b37c1026adf121c6c64c8c9393 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 9 Feb 2020 11:43:44 +0100 Subject: [PATCH] Add one more state to assert. Without that, the comparison 5 lines after was useless. --- src/s4u/s4u_Comm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index b088052cc1..14501e925a 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -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; -- 2.20.1