Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate objects when calling
release()
Previous implementation of `release()` allows passing any arbitrary object which will be pushed back to the pool without any validation. This behavior makes subsequent calls to `acquire()` fail. This commit fixes that by adding acquired objects to an `inUseObjects` list and check for valid objects when calling `release()`.
- Loading branch information
Ryan Dao
committed
Nov 21, 2015
1 parent
8984c31
commit 7eef89d
Showing
1 changed file
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters