Skip to content

Commit

Permalink
fix: Close SSE thread on shutdown (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Dec 23, 2024
1 parent d3a0488 commit 2210658
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldclient/impl/datasource/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def stop(self):
def __stop_with_error_info(self, error: Optional[DataSourceErrorInfo]):
log.info("Stopping StreamingUpdateProcessor")
self._running = False
if self._sse:
self._sse.close()

if self._data_source_update_sink is None:
return
Expand Down

0 comments on commit 2210658

Please sign in to comment.