Clear the operation queue when closing it.

This commit is contained in:
Simon
2016-09-03 22:24:03 -07:00
parent 87f7c98795
commit 017b3ede33

View File

@@ -34,6 +34,9 @@ void AsyncRPCQueue::run(size_t workerId) {
// Exit if the queue is closing.
if (isClosed()) {
while (!operation_id_queue_.empty()) {
operation_id_queue_.pop();
}
break;
}