Break if we're failing to create connections and there is nobody waiting anymore.

pull/77/head
Brett Wooldridge 11 years ago
parent 411792da13
commit afeba45fb3

@ -249,6 +249,10 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
{
PoolUtilities.quietlySleep(sleepBackoff);
sleepBackoff = (int) Math.min(1000f, ((float) sleepBackoff) * 1.5);
if (getThreadsAwaitingConnection() == 0)
{
break;
}
continue;
}

Loading…
Cancel
Save