mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-05 20:39:19 +00:00
Disable interrupts on Reboot / Shutdown buttons
This commit is contained in:
@ -286,13 +286,13 @@ namespace Recovery
|
||||
|
||||
void RebootCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
CriticalSection cs;
|
||||
PowerManager->Reboot();
|
||||
}
|
||||
|
||||
void ShutdownCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
CriticalSection cs;
|
||||
PowerManager->Shutdown();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user