From 444b7d6d97d2108423ccaa5f1250fa2a6e33534d Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 8 Aug 2019 18:50:40 +0200 Subject: [PATCH] parent: use protocol for getting remote_id Fixes 8d1b01d8efba ("Refactor Stream, introduce quasi-asynchronous connect, much more"). --- mitogen/parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 99d8d621..79b484c2 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -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()