Skip to content

Commit

Permalink
Merge pull request #685 from jnunemaker/poller-stop
Browse files Browse the repository at this point in the history
Stop poller instances when resetting
  • Loading branch information
bkeepers committed Nov 18, 2022
2 parents a713258 + 3ffa8ab commit 578489b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flipper/adapters/poll/poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.get(key, options = {})
end

def self.reset
instances.clear
instances.each {|_,poller| poller.stop }.clear
end

def initialize(options = {})
Expand Down

0 comments on commit 578489b

Please sign in to comment.