Commit e87ff7c177ca1fb327c96acf09da0c77238d6a12

Con Kolivas 2012-07-29T13:15:39

Keep a counter of enabled pools and use that instead of iterating over the pool list. Use that value to ensure we don't set the last remaining active pool to the rejecting state.