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

Unified Diff: runtime/bin/socket_stream_impl.dart

Issue 9834008: Add error handling to the HTTP library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
Index: runtime/bin/socket_stream_impl.dart
diff --git a/runtime/bin/socket_stream_impl.dart b/runtime/bin/socket_stream_impl.dart
index 952b4d1585b961d22e017e5c342b9b23edfed47e..101bf489854d8f44e7d4508584ae463db937e63c 100644
--- a/runtime/bin/socket_stream_impl.dart
+++ b/runtime/bin/socket_stream_impl.dart
@@ -174,7 +174,11 @@ class _SocketOutputStream
} else {
if (_onNoPendingWrites != null) _onNoPendingWrites();
}
- if (_onNoPendingWrites == null) _socket._onWrite = null;
+ if (_onNoPendingWrites == null) {
+ _socket._onWrite = null;
+ } else {
+ _socket._onWrite = _onWrite;
+ }
}
void set onError(void callback(Exception e)) {

Powered by Google App Engine
This is Rietveld 408576698