mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Assert waiters and waiter are still the same
This commit is contained in:
parent
b6d7261f91
commit
74340b8e7b
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ class LockDict:
|
||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
with self._lock:
|
with self._lock:
|
||||||
|
assert waiters[0] is waiter and self._dict[key] is waiters
|
||||||
del waiters[0]
|
del waiters[0]
|
||||||
if waiters:
|
if waiters:
|
||||||
waiters[0].release()
|
waiters[0].release()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue