forked from lix-project/lix
Pool: Don't hang if creating a connection fails
This commit is contained in:
parent
577ebeaefb
commit
d140c75530
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ public:
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
auto state_(state.lock());
|
auto state_(state.lock());
|
||||||
state_->inUse--;
|
state_->inUse--;
|
||||||
|
wakeup.notify_one();
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue