Index: trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | $selector = "antimessage = 'true'"; |
169 | 169 | $antimessages = stompFetchMessages( 'cc-limbo', $selector, 1000 ); |
170 | 170 | $count = 0; |
171 | | - while ( count( $antimessages ) && $this->keepGoing() ){ //if there's an antimessage, we can ack 'em all right now. |
| 171 | + while ( count( $antimessages ) > 10 && $this->keepGoing() ){ //if there's an antimessage, we can ack 'em all right now. |
172 | 172 | $count += count( $antimessages ); |
173 | 173 | foreach ( $antimessages as $message ){ |
174 | 174 | //add the correlation ID to the ack bucket. |