Improve names returned by server_info counters

This commit is contained in:
Scott Schurr
2021-11-15 19:07:22 -08:00
committed by manojsdoshi
parent fc04336caa
commit d54f6278bb
8 changed files with 100 additions and 81 deletions

View File

@@ -94,7 +94,9 @@ JobQueue::addRefCountedJob(
// FIXME: Workaround incorrect client shutdown ordering
// do not add jobs to a queue with no threads
assert(type == jtCLIENT || m_workers.getNumberOfThreads() > 0);
assert(
(type >= jtCLIENT && type <= jtCLIENT_WEBSOCKET) ||
m_workers.getNumberOfThreads() > 0);
{
std::lock_guard lock(m_mutex);