From: Bob Halley Date: Tue, 18 Jul 2023 01:19:50 +0000 (-0700) Subject: simplify event set X-Git-Tag: v2.4.1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0605d8d816bf84f672c4dfb94861775c58b774c;p=thirdparty%2Fdnspython.git simplify event set (cherry picked from commit 80ce926232abf6fe51f50f111ccd47f522556c65) --- diff --git a/dns/quic/_asyncio.py b/dns/quic/_asyncio.py index 30de36ae..cf1de8ec 100644 --- a/dns/quic/_asyncio.py +++ b/dns/quic/_asyncio.py @@ -186,9 +186,8 @@ class AsyncioQuicConnection(AsyncQuicConnection): self._manager.closed(self._peer[0], self._peer[1]) self._closed = True self._connection.close() - if not self._socket_created.is_set(): - # sender might be blocked on this, so set it - self._socket_created.set() + # sender might be blocked on this, so set it + self._socket_created.set() async with self._wake_timer: self._wake_timer.notify_all() try: