Liam 3 лет назад
Родитель
Сommit
23151ff498
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      src/core/core.cpp

+ 4 - 3
src/core/core.cpp

@@ -380,9 +380,7 @@ struct System::Impl {
             gpu_core->NotifyShutdown();
             gpu_core->NotifyShutdown();
         }
         }
 
 
-        kernel.ShutdownCores();
-        cpu_manager.Shutdown();
-        debugger.reset();
+        kernel.SuspendApplication(true);
         if (services) {
         if (services) {
             services->KillNVNFlinger();
             services->KillNVNFlinger();
         }
         }
@@ -398,6 +396,9 @@ struct System::Impl {
         gpu_core.reset();
         gpu_core.reset();
         host1x_core.reset();
         host1x_core.reset();
         perf_stats.reset();
         perf_stats.reset();
+        kernel.ShutdownCores();
+        cpu_manager.Shutdown();
+        debugger.reset();
         kernel.Shutdown();
         kernel.Shutdown();
         memory.Reset();
         memory.Reset();