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

Unified Diff: sdk/lib/async/stream_pipe.dart

Issue 12213009: Fix bad handling of done events in _ForwardingStream. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added more chaining in the test. Created 7 years, 10 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 | tests/lib/async/stream_transform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | tests/lib/async/stream_transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698