[stream-refactor] fix crash when no stderr present.

pull/607/head
David Wilson 5 years ago
parent 4b0870aa6e
commit 1fb3852fa6

@ -1486,7 +1486,7 @@ class Connection(object):
self, self.proc.pid,
self.proc.stdin.fileno(),
self.proc.stdout.fileno(),
self.proc.stderr.fileno())
self.proc.stderr and self.proc.stderr.fileno())
self.latch = mitogen.core.Latch()
self._router.broker.defer(self._async_connect)

Loading…
Cancel
Save