diff --git a/src/command.cpp b/src/command.cpp index d7d39a1..95907b8 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -64,7 +64,10 @@ template void Command::processReply(redisReply *r) { pending_--; - waiting_done_ = true; + { + unique_lock lk(waiter_lock_); + waiting_done_ = true; + } waiter_.notify_all(); // Always free the reply object for repeating commands