Assert waiters and waiter are still the same
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user