rebuild TickerHandler store_key if it's been serialized

This commit is contained in:
0xDEADFED5 2025-03-30 02:50:36 -07:00
parent 5b2963fc46
commit bad5817c44

View file

@ -564,6 +564,10 @@ class TickerHandler(object):
if not store_key: if not store_key:
obj, path, callfunc = self._get_callback(callback) obj, path, callfunc = self._get_callback(callback)
store_key = self._store_key(obj, path, interval, callfunc, idstring, persistent) store_key = self._store_key(obj, path, interval, callfunc, idstring, persistent)
else:
if isinstance(store_key, tuple) and not isinstance(store_key[0], tuple):
obj, path, callfunc = self._get_callback(getattr(store_key[0], store_key[1]))
store_key = self._store_key(obj, path, store_key[3], callfunc, store_key[4], store_key[5])
to_remove = self.ticker_storage.pop(store_key, None) to_remove = self.ticker_storage.pop(store_key, None)
if to_remove: if to_remove:
self.ticker_pool.remove(store_key) self.ticker_pool.remove(store_key)