Pool: Don't hang if creating a connection fails

This commit is contained in:
Eelco Dolstra 2017-03-03 19:21:43 +01:00
parent 577ebeaefb
commit d140c75530
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -137,6 +137,7 @@ public:
} catch (...) { } catch (...) {
auto state_(state.lock()); auto state_(state.lock());
state_->inUse--; state_->inUse--;
wakeup.notify_one();
throw; throw;
} }
} }