Chromium Code Reviews| Index: sdk/lib/async/stream_pipe.dart |
| diff --git a/sdk/lib/async/stream_pipe.dart b/sdk/lib/async/stream_pipe.dart |
| index 8867ee005b1d633ae5915b14f9f2e417440f6cf0..aaa34b059362638f8f9b04fad2f50f6eaccc9eea 100644 |
| --- a/sdk/lib/async/stream_pipe.dart |
| +++ b/sdk/lib/async/stream_pipe.dart |
| @@ -215,6 +215,8 @@ class _ForwardingStreamSubscription<S, T> |
| } |
| void _handleDone() { |
| + // On a done-event, we have already been unsubscribed. |
| + _subscription = null; |
| _stream._handleDone(this); |
| } |
| } |