From 29b48d3d2fba06182c708c2389c2a1a686a8cc65 Mon Sep 17 00:00:00 2001 From: Collin Hockey Date: Fri, 21 Aug 2015 15:46:47 -0400 Subject: [PATCH] Fix condition variable usage in Command --- src/command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- libgit2 0.21.4