From 1070dfae721751eb585a555342e30ee077d8a07c Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 15 May 2018 00:17:38 +0100 Subject: [PATCH] issue #249: fix iter_read() regression. --- mitogen/parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 01b558fe..9e40d17f 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -397,7 +397,7 @@ def iter_read(fds, deadline=None): s, disconnected = mitogen.core.io_op(os.read, fd, 4096) if disconnected or not s: IOLOG.debug('iter_read(%r) -> disconnected', fd) - fds.remove(fd) + poller.stop_receive(fd) else: IOLOG.debug('iter_read(%r) -> %r', fd, s) bits.append(s)