Skip to content

Commit

Permalink
added code to guard against multiple RackApplications getting checked…
Browse files Browse the repository at this point in the history
… back into the pool
  • Loading branch information
Badrinath Janakiraman authored and nicksieger committed Oct 4, 2010
1 parent c97f420 commit 8229aaa
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2010 Engine Yard, Inc.
* Copyright (c) 2007-2009 Sun Microsystems, Inc.
* This source code is available under the MIT license.
Expand Down Expand Up @@ -99,6 +99,9 @@ public void finishedWithApplication(RackApplication app) {
if (maximum != null && applicationPool.size() >= maximum) {
return;
}
if (applicationPool.contains(app)){
return;
}
applicationPool.add(app);
if (permits != null) {
permits.release();
Expand Down

0 comments on commit 8229aaa

Please sign in to comment.