Skip to content

Commit ba57af9

Browse files
committed
Pass socket to wait_readable(), not its FD
1 parent 2123d74 commit ba57af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zmq_anyio/_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ async def _start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED):
896896
exception_handler=ignore_exceptions,
897897
)
898898
wait_readable_task = create_task(
899-
wait_readable(self._shadow_sock.FD), # type: ignore[arg-type]
899+
wait_readable(self._shadow_sock), # type: ignore[arg-type]
900900
self._task_group,
901901
exception_handler=ignore_exceptions,
902902
)

0 commit comments

Comments
 (0)