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

Unified Diff: runtime/bin/vmservice/observatory/lib/service_io.dart

Issue 575853002: Add tools/ddbg_service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 3 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/vmservice/observatory/lib/service_io.dart
diff --git a/runtime/bin/vmservice/observatory/lib/service_io.dart b/runtime/bin/vmservice/observatory/lib/service_io.dart
index 77b7964f48e7e5a37e9bafe69c5d48ffa3f76ac8..5bae3e888f347ce587a55fb9fb5365dbd7b9e556 100644
--- a/runtime/bin/vmservice/observatory/lib/service_io.dart
+++ b/runtime/bin/vmservice/observatory/lib/service_io.dart
@@ -29,6 +29,8 @@ class _IOWebSocket implements CommonWebSocket {
onDone: onClose,
cancelOnError: true);
onOpen();
+ }).catchError((e, st) {
+ onError();
});
}
@@ -40,7 +42,9 @@ class _IOWebSocket implements CommonWebSocket {
}
void close() {
- _webSocket.close();
+ if (_webSocket != null) {
+ _webSocket.close();
+ }
}
Future<ByteData> nonStringToByteData(dynamic data) {

Powered by Google App Engine
This is Rietveld 408576698