Skip to content

Commit ed104e7

Browse files
committed
Stop the store after we have shutdown the poller to avoid potential errors
1 parent 3cdae53 commit ed104e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ldclient-rb/impl/data_store/feature_store_client_wrapper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ def initialized?
6767

6868
# (see LaunchDarkly::Interfaces::FeatureStore#stop)
6969
def stop
70-
@store.stop
71-
7270
poller_to_stop = nil
7371

7472
@mutex.synchronize do
@@ -80,6 +78,8 @@ def stop
8078
end
8179

8280
poller_to_stop.stop if poller_to_stop
81+
82+
@store.stop
8383
end
8484

8585
#

0 commit comments

Comments
 (0)