| 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();
|
|
|