Terminate loop when connection attempt succeeds.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@483176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2006-12-06 19:02:19 +00:00
parent 4a03860c2f
commit db25f08565
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class JMSRemoteCommitProvider
close();
boolean connected = false;
for (int i = 0; i < _reconnectAttempts; i++) {
for (int i = 0; !connected && i < _reconnectAttempts; i++) {
try {
if (log.isInfoEnabled())
log.info(s_loc.get("jms-reconnect-attempt", _topicName,