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