From 145125c4da441a44335c9328bd606937bc1ea619 Mon Sep 17 00:00:00 2001 From: Ofer Affias Date: Mon, 21 Jul 2025 20:36:13 +0300 Subject: [PATCH] fix edge case --- zmq/asyncio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq/asyncio.py b/zmq/asyncio.py index 22bbd14d4..5b2a3d5d4 100644 --- a/zmq/asyncio.py +++ b/zmq/asyncio.py @@ -157,7 +157,7 @@ def _clear_io_state(self): called once at close """ loop = self._current_loop - if loop and not loop.is_closed() and self._fd != -1: + if loop and not loop.is_closed(): self._get_selector(loop).remove_reader(self._fd)