mirror of https://github.com/apache/openjpa.git
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:
parent
4a03860c2f
commit
db25f08565
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue