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

Unified Diff: runtime/bin/socket_patch.dart

Issue 12393010: Fix socket so we stop the consumer before we close the socket - this makes sure we socket-close fut… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index 6df9027e4070c888c5a5cd7a437693927266bea9..311487bc074d0f2b47e04a6de51d7d8dbbf78772 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -785,8 +785,8 @@ class _Socket extends Stream<List<int>> implements Socket {
void destroy() {
// Destroy can always be called to get rid of a socket.
if (_raw == null) return;
- _closeRawSocket();
_consumer.stop();
+ _closeRawSocket();
_controllerClosed = true;
_controller.close();
}
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698