Fix error

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-10-02 14:26:03 +01:00
parent 2acee44c29
commit 3e4cb67db9

View File

@@ -305,6 +305,10 @@ JobQueue::stop()
// get suspended and yield() will return immediately, so we can safely
// move m_suspendedCoros, and we can assume that no coroutine will be
// suspended in the future.
if (queueState_ == QueueState::Stopped)
{
return;
}
auto accepting = QueueState::Accepting;