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

Unified Diff: runtime/bin/websocket_impl.dart

Issue 10351009: Implement onClosed on a socket output stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « runtime/bin/socket_stream_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/websocket_impl.dart
diff --git a/runtime/bin/websocket_impl.dart b/runtime/bin/websocket_impl.dart
index f85c2564c62119c524f73817c94a185867b7c437..a23fde4bc96c976b2dc289dd6dcaecd8e1378ca1 100644
--- a/runtime/bin/websocket_impl.dart
+++ b/runtime/bin/websocket_impl.dart
@@ -433,8 +433,8 @@ class _WebSocketConnectionBase {
if (_closeReceived) {
// Close the socket when the close frame has been sent - if it
// does not take too long.
- _socket.close(true);
- _socket.outputStream.onNoPendingWrites = () {
+ _socket.outputStream.close();
+ _socket.outputStream.onClosed = () {
if (_closeTimer != null) _closeTimer.cancel();
_socket.close();
};
« no previous file with comments | « runtime/bin/socket_stream_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698