Fixes #664 do not recycle (requite) PoolEntrys that have been closed.

pull/677/head
Brett Wooldridge 9 years ago
parent 551b1039e9
commit eb65b1b233

@ -82,8 +82,10 @@ final class PoolEntry implements IConcurrentBagEntry
*/ */
void recycle(final long lastAccessed) void recycle(final long lastAccessed)
{ {
this.lastAccessed = lastAccessed; if (connection != null) {
hikariPool.releaseConnection(this); this.lastAccessed = lastAccessed;
hikariPool.releaseConnection(this);
}
} }
/** /**

Loading…
Cancel
Save