We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0d886 commit 4e0446fCopy full SHA for 4e0446f
src/BSH.Engine/Win32.cs
@@ -176,7 +176,7 @@ public static void KeepSystemAwake()
176
177
static void tmr_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
178
{
179
- SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED);
+ SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);
180
}
181
182
public static void AllowSystemSleep()
0 commit comments