Skip to content

Commit

Permalink
[POOL-419] Fix for POOL-419. Before adding the returned object to the…
Browse files Browse the repository at this point in the history
… pool, we must check whether it is already deallocated.
  • Loading branch information
Raju Kumar Gupta committed Feb 3, 2025
1 parent 6201994 commit da9f8cf
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,6 @@ public void returnObject(final T obj) {
idleObjects.addLast(p);
}



if (isClosed()) {
// Pool closed while object was being added to idle objects.
// Make sure the returned object is destroyed rather than left
Expand Down

0 comments on commit da9f8cf

Please sign in to comment.