Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit e8e7ff0

Browse files
committed
Don't shutdown in the case of an exception-- just keep trying
1 parent d5e63b3 commit e8e7ff0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111

1212
allprojects {
1313
group = 'com.launchdarkly'
14-
version = "0.12.0-SNAPSHOT"
14+
version = "0.13.0-SNAPSHOT"
1515
sourceCompatibility = 1.6
1616
targetCompatibility = 1.6
1717
}

src/main/java/com/launchdarkly/client/EventSource.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,9 @@ public void run() {
534534
logger.debug("Recovering from HTTP 503 - scheduling to reconnect in {0} ms", delay);
535535
scheduleReconnect(delay);
536536
} catch (Exception ex) {
537-
logger.warn(String.format("Unable to connect - closing the event source to %s.",
538-
target.getUri().toASCIIString()), ex);
539-
// if we're here, an unrecoverable error has occurred - just turn off the lights...
540-
EventSource.this.shutdown();
537+
logger.debug("Recovering from exception " + ex.getMessage() + "-- scheduling reconnect");
538+
scheduleReconnect(reconnectDelay);
539+
541540
} finally {
542541
if (eventInput != null && !eventInput.isClosed()) {
543542
eventInput.close();

0 commit comments

Comments
 (0)