Assert waiters and waiter are still the same
This commit is contained in:
parent
06f93a032b
commit
fb3de73d1c
@ -81,6 +81,7 @@ class LockDict:
|
||||
yield
|
||||
finally:
|
||||
with self._lock:
|
||||
assert waiters[0] is waiter and self._dict[key] is waiters
|
||||
del waiters[0]
|
||||
if waiters:
|
||||
waiters[0].release()
|
||||
|
Loading…
Reference in New Issue
Block a user