From 017b3ede33841a7b29ec884fd3e86dd574aa631e Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 3 Sep 2016 22:24:03 -0700 Subject: [PATCH] Clear the operation queue when closing it. --- src/asyncrpcqueue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asyncrpcqueue.cpp b/src/asyncrpcqueue.cpp index a63619f0b..385709a61 100644 --- a/src/asyncrpcqueue.cpp +++ b/src/asyncrpcqueue.cpp @@ -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; }