diff --git a/beast/threads/ServiceQueue.h b/beast/threads/ServiceQueue.h index 8d9c199a5..2de4e44e0 100644 --- a/beast/threads/ServiceQueue.h +++ b/beast/threads/ServiceQueue.h @@ -449,7 +449,9 @@ public: SharedState::Access state (m_state); // Must be empty - bassert (state->handlers.empty()); + //bassert (state->handlers.empty()); + + // Cannot destroy while threads are waiting bassert (state->waiting.empty()); typename Allocator::template rebind ::other a (m_alloc);