Skip to content

Commit 53f3a96

Browse files
committed
update error handling on close
1 parent 12be9ab commit 53f3a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android-client-sdk/src/main/java/com/devcycle/sdk/android/eventsource/SafeBackgroundEventSource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.devcycle.sdk.android.eventsource
22

33
import com.devcycle.sdk.android.util.DevCycleLogger
44
import com.launchdarkly.eventsource.EventSource
5-
import com.launchdarkly.eventsource.ReadyState
65
import com.launchdarkly.eventsource.background.BackgroundEventSource
76
import java.util.concurrent.RejectedExecutionException
87

@@ -50,6 +49,7 @@ class SafeBackgroundEventSource(
5049
} catch (e: Exception) {
5150
// Log unexpected exceptions but don't propagate them to prevent crashes
5251
DevCycleLogger.w("Unexpected error closing EventSource: ${e.message}")
52+
throw e
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)