mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +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()
|
void RebootCommandThread()
|
||||||
{
|
{
|
||||||
TaskManager->Sleep(1000);
|
CriticalSection cs;
|
||||||
PowerManager->Reboot();
|
PowerManager->Reboot();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShutdownCommandThread()
|
void ShutdownCommandThread()
|
||||||
{
|
{
|
||||||
TaskManager->Sleep(1000);
|
CriticalSection cs;
|
||||||
PowerManager->Shutdown();
|
PowerManager->Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user