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

Unified Diff: sdk/lib/io/socket_stream_impl.dart

Issue 11614028: Revert "Fixes to eventhandler and HTTP" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket_stream_impl.dart
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart
index ffa0cbf0579361201a36e6caa42ca845b76210de..9969edc6e898d04ebb34f9e60f89812f48e778be 100644
--- a/sdk/lib/io/socket_stream_impl.dart
+++ b/sdk/lib/io/socket_stream_impl.dart
@@ -109,7 +109,7 @@ class _SocketOutputStream
}
void destroy() {
- _socket._onWrite = null;
+ _socket.onWrite = null;
_pendingWrites.clear();
_socket.close();
_closed = true;
@@ -191,12 +191,12 @@ class _SocketOutputStream
}
bool _onSocketError(e) {
- destroy();
+ close();
if (_onError != null) {
_onError(e);
return true;
} else {
- throw e;
+ return false;
}
}
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_shutdown_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698