Skip to content

Commit 5717a1b

Browse files
committed
fix: back off after stream errors to avoid a busy loop
beep boop
1 parent d424282 commit 5717a1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

flagsmith/streaming_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def run(self) -> None:
4242

4343
except Exception:
4444
logger.exception("Error opening or reading from the event stream")
45+
self._stop_event.wait(1)
4546

4647
def stop(self) -> None:
4748
self._stop_event.set()

0 commit comments

Comments
 (0)