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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1406343004: Allow for FakeVMRpcExceptions when listening for streams (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 9b5f7a2bd3b303fda0ab55a9cbe06b5e35bad54e..b1d3f15c64db3e886ba4b73f3c574d73b9311695 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -829,10 +829,14 @@ abstract class VM extends ServiceObjectOwner {
if (!loaded) {
// The vm service relies on these events to keep the VM and
// Isolate types up to date.
- await listenEventStream(kVMStream, _dispatchEventToIsolate);
- await listenEventStream(kIsolateStream, _dispatchEventToIsolate);
- await listenEventStream(kDebugStream, _dispatchEventToIsolate);
- await listenEventStream(_kGraphStream, _dispatchEventToIsolate);
+ try {
+ await listenEventStream(kVMStream, _dispatchEventToIsolate);
+ await listenEventStream(kIsolateStream, _dispatchEventToIsolate);
+ await listenEventStream(kDebugStream, _dispatchEventToIsolate);
+ await listenEventStream(_kGraphStream, _dispatchEventToIsolate);
+ } on FakeVMRpcException catch (e) {
+ // ignore FakeVMRpcExceptions here.
+ }
}
return await invokeRpcNoUpgrade('getVM', {});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698