diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-03-03T18·21+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-03-03T18·21+0100 |
commit | d140c75530d385431850bed2f2c250f889c43c2f (patch) | |
tree | 6d2336460bf47bdbc648f7f2e5c3f9cc752422e2 | |
parent | 577ebeaefb71020f0d6b79488602fd56ba2c1863 (diff) |
Pool: Don't hang if creating a connection fails
-rw-r--r-- | src/libutil/pool.hh | 1 |
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; } } |