This commit is contained in:
Miroslav Stampar 2019-08-11 01:32:20 +02:00
parent de63238897
commit 15f6796b04
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ def lockedmethod(f):
@functools.wraps(f)
def _(*args, **kwargs):
if f not in _method_locks:
_method_locks[f] = threading.Lock()
_method_locks[f] = threading.RLock()
with _method_locks[f]:
result = f(*args, **kwargs)