Do not delete queue if there is no callback.
GitOrigin-RevId: d19a6b2c2c5ee517bae5cf809068f413217ca723
This commit is contained in:
parent
2b52849b70
commit
2882e96b63
@ -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++;
|
deleted_queues++;
|
||||||
it = queues_.erase(it);
|
it = queues_.erase(it);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user