mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 23:44:35 +00:00
Disable interrupts on Reboot / Shutdown buttons
This commit is contained in:
parent
c9c58f78a8
commit
6408121b3e
@ -286,13 +286,13 @@ namespace Recovery
|
||||
|
||||
void RebootCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
CriticalSection cs;
|
||||
PowerManager->Reboot();
|
||||
}
|
||||
|
||||
void ShutdownCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
CriticalSection cs;
|
||||
PowerManager->Shutdown();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user