about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-03T18·21+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-03T18·21+0100
commitd140c75530d385431850bed2f2c250f889c43c2f (patch)
tree6d2336460bf47bdbc648f7f2e5c3f9cc752422e2
parent577ebeaefb71020f0d6b79488602fd56ba2c1863 (diff)
Pool: Don't hang if creating a connection fails
-rw-r--r--src/libutil/pool.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/pool.hh b/src/libutil/pool.hh
index 3c3dd4b074f3..20df21948849 100644
--- a/src/libutil/pool.hh
+++ b/src/libutil/pool.hh
@@ -137,6 +137,7 @@ public:
         } catch (...) {
             auto state_(state.lock());
             state_->inUse--;
+            wakeup.notify_one();
             throw;
         }
     }