mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
fix(rpc_register): _lock and _skip_broad_cast moved to instance attributes
This commit is contained in:
@ -39,8 +39,6 @@ class RPCRegister:
|
|||||||
|
|
||||||
_instance = None
|
_instance = None
|
||||||
_initialized = False
|
_initialized = False
|
||||||
_lock = RLock()
|
|
||||||
_skip_broadcast = False
|
|
||||||
|
|
||||||
def __new__(cls, *args, **kwargs):
|
def __new__(cls, *args, **kwargs):
|
||||||
if cls._instance is None:
|
if cls._instance is None:
|
||||||
@ -53,6 +51,8 @@ class RPCRegister:
|
|||||||
return
|
return
|
||||||
self._rpc_register = WeakValueDictionary()
|
self._rpc_register = WeakValueDictionary()
|
||||||
self._broadcast_on_hold = RPCRegisterBroadcast(self)
|
self._broadcast_on_hold = RPCRegisterBroadcast(self)
|
||||||
|
self._lock = RLock()
|
||||||
|
self._skip_broadcast = False
|
||||||
self._initialized = True
|
self._initialized = True
|
||||||
self.callbacks = []
|
self.callbacks = []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user