0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(rpc_register): Lock changed to RLock

This commit is contained in:
2025-03-24 17:23:37 +01:00
parent 94c2e2db65
commit 6c90ca3107

View File

@ -1,7 +1,7 @@
from __future__ import annotations
from functools import wraps
from threading import Lock
from threading import Lock, RLock
from typing import TYPE_CHECKING, Callable
from weakref import WeakValueDictionary
@ -39,7 +39,7 @@ class RPCRegister:
_instance = None
_initialized = False
_lock = Lock()
_lock = RLock()
_skip_broadcast = False
def __new__(cls, *args, **kwargs):