This commit is contained in:
Manjusaka 2024-10-16 21:13:01 +08:00
parent 3214d981c4
commit cfb5397888
No known key found for this signature in database
GPG key ID: 878F445D9C6CE65E

View file

@ -411,10 +411,7 @@ class Condition:
while waiters and n > 0:
waiter = waiters[0]
try:
if timeout:
waiter.release(timeout)
else:
waiter.release()
waiter.release()
except RuntimeError:
# gh-92530: The previous call of notify() released the lock,
# but was interrupted before removing it from the queue.