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

This commit is contained in:
David Wilson 2019-07-22 18:12:41 +01:00
parent 4b0870aa6e
commit 1fb3852fa6
1 changed files with 1 additions and 1 deletions

View File

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