parent: use protocol for getting remote_id

Fixes 8d1b01d8ef ("Refactor Stream, introduce quasi-asynchronous connect, much
more").
pull/612/head
Marc Hartmayer 5 years ago
parent 8eeff66bd7
commit 444b7d6d97

@ -2331,7 +2331,7 @@ class Router(mitogen.core.Router):
directly connected.
"""
stream = self.stream_by_id(context)
if stream.remote_id != context.context_id:
if stream.protocol.remote_id != context.context_id:
return
l = mitogen.core.Latch()

Loading…
Cancel
Save