Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
jcs-1.3, jcs-2.0-beta-1
-
None
Description
The release() method decreases the client count TWICE during each invocation. As getInstance increases the client count only once release will not work as expected:
public void release()
{
clients--;
if ( --clients != 0 )
{ return; }should be changed into
public void release()
{
if ( --clients != 0 )
{ return; }