tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util SimplePool.java
Date Thu, 07 Dec 2000 18:43:23 GMT
costin      00/12/07 10:43:22

  Modified:    src/share/org/apache/tomcat/util SimplePool.java
  Log:
  Fix to SimplePool. Thanks to James Cook for this one !
  
  Submitted by:	James Cook <jimcook@iname.com>
  
  Revision  Changes    Path
  1.6       +1 -1      jakarta-tomcat/src/share/org/apache/tomcat/util/SimplePool.java
  
  Index: SimplePool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/SimplePool.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SimplePool.java	2000/10/28 00:34:36	1.5
  +++ SimplePool.java	2000/12/07 18:43:22	1.6
  @@ -110,7 +110,7 @@
   	synchronized( lock ) {
   	    if( current < max - 1 )
   		idx=++current;
  -	    if( idx > 0 ) 
  +	    if( idx >= 0 ) 
   		pool[idx]=o;
   	}
       }
  
  
  

Mime
View raw message