Explorar o código

Merge pull request #2374 from wwylele/whats-going-on-with-that-pr

Core: reset cpu_core in Shutdown to make IsPoweredOn work properly
bunnei %!s(int64=9) %!d(string=hai) anos
pai
achega
6409b1d1a4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/core.cpp

+ 1 - 0
src/core/core.cpp

@@ -159,6 +159,7 @@ void System::Shutdown() {
     Kernel::Shutdown();
     Kernel::Shutdown();
     HW::Shutdown();
     HW::Shutdown();
     CoreTiming::Shutdown();
     CoreTiming::Shutdown();
+    cpu_core.reset();
 
 
     LOG_DEBUG(Core, "Shutdown OK");
     LOG_DEBUG(Core, "Shutdown OK");
 }
 }