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

Unified Diff: lib/src/isolate_channel.dart

Issue 1632903004: Add StreamChannelTransformer. (Closed) Base URL: git@github.com:dart-lang/stream_channel.git@master
Patch Set: Code review changes Created 4 years, 11 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 | lib/src/stream_channel_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/isolate_channel.dart
diff --git a/lib/src/isolate_channel.dart b/lib/src/isolate_channel.dart
index c6645438d6b02daf99ff7d916df884cabc2d59e5..46375c986ece4bf296baa4719655a9fff9268252 100644
--- a/lib/src/isolate_channel.dart
+++ b/lib/src/isolate_channel.dart
@@ -128,7 +128,7 @@ class _SendPortSink<T> implements StreamSink<T> {
if (_inAddStream) {
throw new StateError("Cannot add stream while adding stream.");
}
- if (_isDone) return;
+ if (_isDone) return new Future.value();
_inAddStream = true;
var completer = new Completer.sync();
« no previous file with comments | « no previous file | lib/src/stream_channel_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698