Skip to content

Commit 42fb022

Browse files
Fix assert side effect (#846)
1 parent 357538c commit 42fb022

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • score/launch_manager/src/daemon/src/process_group_manager/details

‎score/launch_manager/src/daemon/src/process_group_manager/details/transition.hpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ class Transition
217217
if (isReady(s) && !state_.node_information.at(s).enqueued_)
218218
{
219219
state_.node_information[s].enqueued_ = true;
220+
const bool pushSuccessful = state_.next_nodes.push(s);
220221
SCORE_LANGUAGE_FUTURECPP_ASSERT_MESSAGE(
221-
state_.next_nodes.push(s), "Transition queue should never exceed capacity");
222+
pushSuccessful, "Transition queue should never exceed capacity");
222223
}
223224
}
224225
}

0 commit comments

Comments
 (0)