diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-03-03 19:21:43 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-03-03 19:21:43 +0100 |
commit | d140c75530d385431850bed2f2c250f889c43c2f (patch) | |
tree | 6d2336460bf47bdbc648f7f2e5c3f9cc752422e2 /src/libutil | |
parent | 577ebeaefb71020f0d6b79488602fd56ba2c1863 (diff) |
Pool: Don't hang if creating a connection fails
Diffstat (limited to 'src/libutil')
-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 3c3dd4b07..20df21948 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; } } |