[stream-refactor] fix crash when no stderr present.
This commit is contained in:
parent
4b0870aa6e
commit
1fb3852fa6
|
@ -1486,7 +1486,7 @@ class Connection(object):
|
||||||
self, self.proc.pid,
|
self, self.proc.pid,
|
||||||
self.proc.stdin.fileno(),
|
self.proc.stdin.fileno(),
|
||||||
self.proc.stdout.fileno(),
|
self.proc.stdout.fileno(),
|
||||||
self.proc.stderr.fileno())
|
self.proc.stderr and self.proc.stderr.fileno())
|
||||||
|
|
||||||
self.latch = mitogen.core.Latch()
|
self.latch = mitogen.core.Latch()
|
||||||
self._router.broker.defer(self._async_connect)
|
self._router.broker.defer(self._async_connect)
|
||||||
|
|
Loading…
Reference in New Issue