From c1feea69d3490ce53580f9fdd4bd5061e5256cf8 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum <nweiz@google.com> Date: Mon, 13 Apr 2015 16:54:22 -0700 Subject: [PATCH] Only consider a multichannel closed when the underlying channel closes. R=kevmoo@google.com Review URL: https://codereview.chromium.org//1083543004 --- lib/src/util/multi_channel.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/util/multi_channel.dart b/lib/src/util/multi_channel.dart index 34358488..66236cde 100644 --- a/lib/src/util/multi_channel.dart +++ b/lib/src/util/multi_channel.dart @@ -202,7 +202,7 @@ class _MultiChannel extends StreamChannelMixin implements MultiChannel { /// outgoing messages have [outputId]. void _closeChannel(int inputId, int outputId) { if (_closed) return; - _closed = true; + _closed = inputId == 0; // A message without data indicates that the virtual channel has been // closed. -- GitLab