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

Unified Diff: runtime/observatory/lib/src/repositories/isolate.dart

Issue 2340973002: Improve VM connection flow in Observatory (Closed)
Patch Set: ... Created 4 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/observatory/lib/src/repositories/isolate.dart
diff --git a/runtime/observatory/lib/src/repositories/isolate.dart b/runtime/observatory/lib/src/repositories/isolate.dart
index 4c7712bb7e62f3d5557b211c7bc1c84ecbe8606a..35e77df3c2d4d92ec753fe437092f7294d3d5f9b 100644
--- a/runtime/observatory/lib/src/repositories/isolate.dart
+++ b/runtime/observatory/lib/src/repositories/isolate.dart
@@ -8,7 +8,11 @@ class IsolateRepository extends M.IsolateRepository {
Future<M.Isolate> get(M.IsolateRef i) async{
S.Isolate isolate = i as S.Isolate;
assert(isolate != null);
- await isolate.reload();
+ try {
+ await isolate.reload();
+ } on SC.NetworkRpcException catch (_) {
+ /* ignore */
+ }
return isolate;
}
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_connect.dart ('k') | runtime/observatory/lib/src/repositories/target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698