Commit ba692ee8 authored by payno's avatar payno
Browse files

[SharedLockPool] fix typo: lock should be acquire inside the '_modify_locks' context.

parent c19f9d65
......@@ -98,7 +98,7 @@ class SharedLockPool:
lock = locks.get(name, None)
if lock is None:
locks[name] = lock = threading.RLock()
lock.acquire()
lock.acquire()
try:
yield
finally:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment