diff --git a/mitogen/parent.py b/mitogen/parent.py index 23f55817..ebe61fc1 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -504,10 +504,10 @@ class Poller(mitogen.core.Poller): @classmethod def from_existing(cls, poller): self = cls() - for reader in poller.readers: - self.start_receive(reader.stream) - for writer in poller.writers: - self.start_transmit(writer.stream) + for fd, data in poller.readers: + self.start_receive(fd, data) + for fd, data in poller.writers: + self.start_transmit(fd, data) class KqueuePoller(Poller):