Skip to content

Commit 69e44f8

Browse files
authored
Merge pull request #536 from splitio/fix-sdk-9395
Fix sdk 9395
2 parents 8097860 + 9b31b4a commit 69e44f8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
4.14.1 (XXX XX, XXXX)
2+
- Prevent polling threads from starting when the SDK calls destroy method.
3+
14
4.14.0 (Jan 17, 2025)
25
- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on SplitView type objects. Read more in our docs.
36
- Cleaned unused imports to fix a collision issue.

client/src/main/java/io/split/engine/common/SyncManagerImp.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ private void startPollingMode() {
212212
case STREAMING_DOWN:
213213
_log.info("Streaming service temporarily unavailable, working in polling mode.");
214214
_pushManager.stopWorkers();
215+
// if the whole SDK is being shutdown, don't start polling,
216+
// in case the polling threads are not terminated and a graceful shutdown will fail.
217+
if(_shuttedDown.get()) {
218+
break;
219+
}
215220
_synchronizer.startPeriodicFetching();
216221
break;
217222
case STREAMING_BACKOFF:

0 commit comments

Comments
 (0)