Eliminate double-execution of shutdown code.

pull/77/head
Brett Wooldridge 11 years ago
parent c813dbd997
commit bbac41d3e9

@ -223,6 +223,8 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
}
public void shutdown()
{
if (!isShutdown)
{
isShutdown = true;
houseKeepingTimer.cancel();
@ -238,6 +240,7 @@ public final class HikariPool implements HikariPoolMBean, IBagStateListener
HikariMBeanElf.unregisterMBeans(configuration, this);
}
}
}
public DataSource getDataSource()
{

Loading…
Cancel
Save