Pool: Don't hang if creating a connection fails
This commit is contained in:
@@ -137,6 +137,7 @@ public:
|
||||
} catch (...) {
|
||||
auto state_(state.lock());
|
||||
state_->inUse--;
|
||||
wakeup.notify_one();
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user