From d140c75530d385431850bed2f2c250f889c43c2f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 Mar 2017 19:21:43 +0100 Subject: [PATCH] Pool: Don't hang if creating a connection fails --- src/libutil/pool.hh | 1 + 1 file changed, 1 insertion(+) 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; } }