From: Bob Halley Date: Tue, 18 Jul 2023 01:19:50 +0000 (-0700) Subject: simplify event set X-Git-Tag: v2.5.0rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ce926232abf6fe51f50f111ccd47f522556c65;p=thirdparty%2Fdnspython.git simplify event set --- 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: