Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2057)

Unified Diff: lib/src/util/multi_channel.dart

Issue 1083543004: Only consider a multichannel closed when the underlying channel closes. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/multi_channel.dart
diff --git a/lib/src/util/multi_channel.dart b/lib/src/util/multi_channel.dart
index 34358488a80ae9de5b0bcfd64ab067e9e45cb521..66236cde8ca7a74d29dfa95dc0dc553db58c83f6 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698