Do not delete queue if there is no callback.

GitOrigin-RevId: d19a6b2c2c5ee517bae5cf809068f413217ca723
This commit is contained in:
levlam 2020-07-24 14:03:59 +03:00
parent 2b52849b70
commit 2882e96b63

View File

@ -233,7 +233,7 @@ class TQueueImpl : public TQueue {
}
}
}
if (deleted_events == it->second.events.size()) {
if (callback_ != nullptr && deleted_events == it->second.events.size()) {
deleted_queues++;
it = queues_.erase(it);
} else {