mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-08-21 11:05:00 +00:00
Disable interrupts on Reboot / Shutdown buttons
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user