Skip to content

Commit

Permalink
TwitchChatVotingProxy: Make busy loops more lenient
Browse files Browse the repository at this point in the history
Less resource heavy and fixes discord voting in wine
  • Loading branch information
pongo1231 committed Feb 7, 2024
1 parent 47e7ead commit 7c746d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TwitchChatVotingProxy/TwitchChatVotingProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static async Task Main(string[] args)
chaosPipe.SendMessageToPipe("hello");
while (!chaosPipe.GotHelloBack && chaosPipe.IsConnected())
{
await Task.Delay(0);
await Task.Delay(100);
}

if (chaosPipe.GotHelloBack)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task<bool> Init()

while (!m_IsReady)
{
await Task.Delay(0);
await Task.Delay(100);
}

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task<bool> Init()

while (!m_IsReady)
{
await Task.Delay(0);
await Task.Delay(100);
}

return true;
Expand Down

0 comments on commit 7c746d2

Please sign in to comment.