issue #249: fix iter_read() regression.

This commit is contained in:
David Wilson 2018-05-15 00:17:38 +01:00
parent dcf0aa351e
commit 1070dfae72
1 changed files with 1 additions and 1 deletions

View File

@ -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)