Skip to content

Commit c0570e2

Browse files
committed
Fix lock issue
1 parent 4ec58d7 commit c0570e2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ldclient/impl/integrations/files/file_data_sourcev2.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,11 @@ def stop(self):
188188
return
189189
self._closed = True
190190

191-
if self._auto_updater:
192-
self._auto_updater.stop()
193-
self._auto_updater = None
191+
auto_updater = self._auto_updater
192+
self._auto_updater = None
193+
194+
if auto_updater:
195+
auto_updater.stop()
194196

195197
# Signal shutdown to sync generator
196198
self._update_queue.put(None)

0 commit comments

Comments
 (0)