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', {}); |
} |