]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
simplify event set
authorBob Halley <halley@dnspython.org>
Tue, 18 Jul 2023 01:19:50 +0000 (18:19 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 18 Jul 2023 01:19:50 +0000 (18:19 -0700)
dns/quic/_asyncio.py

index 30de36ae45f9b9a86f69eb65fbe37329bcba6566..cf1de8ec04026ebdddd76ccd958975e9d7e0660a 100644 (file)
@@ -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: