diff --git a/src/asyncrpcqueue.cpp b/src/asyncrpcqueue.cpp index d7d82557d..afe6d4bef 100644 --- a/src/asyncrpcqueue.cpp +++ b/src/asyncrpcqueue.cpp @@ -31,7 +31,7 @@ void AsyncRPCQueue::run(size_t workerId) { AsyncRPCOperationId key; std::shared_ptr operation; { - std::unique_lock< std::mutex > guard(lock_); + std::unique_lock guard(lock_); while (operation_id_queue_.empty() && !isClosed() && !isFinishing()) { this->condition_.wait(guard); }