Merge pull request #2727 from InspectorCaracal/tickerhandler-clear

Fix `tickerhandler.clear`
This commit is contained in:
Griatch 2022-04-23 14:39:12 +02:00 committed by GitHub
commit 7f4769bd9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -585,9 +585,9 @@ class TickerHandler(object):
self.ticker_pool.stop(interval)
if interval:
self.ticker_storage = dict(
(store_key, store_key)
for store_key in self.ticker_storage
if store_key[1] != interval
(store_key, store_value)
for store_key, store_value in self.ticker_storage.items()
if store_key[3] != interval
)
else:
self.ticker_storage = {}