Skip to content

Commit 4e0446f

Browse files
authored
fix: standby in win11 (#406)
1 parent cc0d886 commit 4e0446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BSH.Engine/Win32.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static void KeepSystemAwake()
176176

177177
static void tmr_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
178178
{
179-
SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED);
179+
SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);
180180
}
181181

182182
public static void AllowSystemSleep()

0 commit comments

Comments
 (0)