Index: runtime/vm/service_isolate.cc |
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc |
index 5bcd7cb6ee8ef80a9203ce3df36ab13f6cff4b2b..923f6d4c43e65bca1d8e6fe09d7988606e95a499 100644 |
--- a/runtime/vm/service_isolate.cc |
+++ b/runtime/vm/service_isolate.cc |
@@ -360,11 +360,8 @@ class RunServiceTask : public ThreadPool::Task { |
} |
Dart::RunShutdownCallback(); |
} |
- { |
- // Shut the isolate down. |
- SwitchIsolateScope switch_scope(I); |
- Dart::ShutdownIsolate(); |
- } |
+ // Shut the isolate down. |
+ Dart::ShutdownIsolate(I); |
if (FLAG_trace_service) { |
OS::Print("vm-service: Shutdown.\n"); |
} |