Browse code

b/f:sbc:cc bl_redis: avoid busy loop of connections handling thread

Stefan Sayer authored on 24/04/2014 16:17:23
Showing 1 changed files
... ...
@@ -101,6 +101,7 @@ void RedisConnectionPool::run() {
101 101
 
102 102
   while (true) {
103 103
     try_connect.wait_for();
104
+    try_connect.set(false);
104 105
     while (true) {
105 106
       connections_mut.lock();
106 107
       unsigned int m_failed_connections = failed_connections;