mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-16 09:41:42 +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