Merge pull request #2727 from InspectorCaracal/tickerhandler-clear
Fix `tickerhandler.clear`
This commit is contained in:
commit
0c62046224
1 changed files with 3 additions and 3 deletions
|
|
@ -585,9 +585,9 @@ class TickerHandler(object):
|
||||||
self.ticker_pool.stop(interval)
|
self.ticker_pool.stop(interval)
|
||||||
if interval:
|
if interval:
|
||||||
self.ticker_storage = dict(
|
self.ticker_storage = dict(
|
||||||
(store_key, store_key)
|
(store_key, store_value)
|
||||||
for store_key in self.ticker_storage
|
for store_key, store_value in self.ticker_storage.items()
|
||||||
if store_key[1] != interval
|
if store_key[3] != interval
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.ticker_storage = {}
|
self.ticker_storage = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue