Skip to content

Commit 2210658

Browse files
authored
fix: Close SSE thread on shutdown (#320)
1 parent d3a0488 commit 2210658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ldclient/impl/datasource/streaming.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def stop(self):
114114
def __stop_with_error_info(self, error: Optional[DataSourceErrorInfo]):
115115
log.info("Stopping StreamingUpdateProcessor")
116116
self._running = False
117+
if self._sse:
118+
self._sse.close()
117119

118120
if self._data_source_update_sink is None:
119121
return

0 commit comments

Comments
 (0)