diff --git a/ldclient/impl/datasource/streaming.py b/ldclient/impl/datasource/streaming.py index 0a44746..d4f89b5 100644 --- a/ldclient/impl/datasource/streaming.py +++ b/ldclient/impl/datasource/streaming.py @@ -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