We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cbcfd8 commit bbb6237Copy full SHA for bbb6237
ldclient/impl/datasystem/fdv2.py
@@ -228,6 +228,19 @@ def is_monitoring_enabled(self) -> bool:
228
return False
229
230
return monitoring_enabled()
231
+
232
+ def close(self):
233
+ """
234
+ Close the wrapper and stop the repeating task poller if it's running.
235
+ This is called by Store.close() during shutdown to ensure the poller thread is stopped.
236
237
+ poller_to_stop = None
238
+ with self.__lock.write():
239
+ poller_to_stop = self.__poller
240
+ self.__poller = None
241
242
+ if poller_to_stop is not None:
243
+ poller_to_stop.stop()
244
245
246
class FDv2(DataSystem):
0 commit comments