Disable interrupts on Reboot / Shutdown buttons

This commit is contained in:
Alex 2023-03-20 03:06:27 +02:00
parent c9c58f78a8
commit 6408121b3e
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -286,13 +286,13 @@ namespace Recovery
void RebootCommandThread() void RebootCommandThread()
{ {
TaskManager->Sleep(1000); CriticalSection cs;
PowerManager->Reboot(); PowerManager->Reboot();
} }
void ShutdownCommandThread() void ShutdownCommandThread()
{ {
TaskManager->Sleep(1000); CriticalSection cs;
PowerManager->Shutdown(); PowerManager->Shutdown();
} }