Skip to content

Commit 948547e

Browse files
committed
Address high cpu usage on MacOS
1 parent 40cb04c commit 948547e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ft/Utilities/Delay.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ public static class Delay
1212
{
1313
public static void Wait(int ms)
1414
{
15-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
16-
{
17-
Thread.Sleep(ms);
18-
return;
19-
}
20-
2115
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
2216
{
2317
WindowsDelay.Wait(ms);
24-
return;
18+
}
19+
else
20+
{
21+
Thread.Sleep(ms);
2522
}
2623
}
2724
}

0 commit comments

Comments
 (0)