fixed endless discord updates

I'm an idiot and had no idea what I was doing with haxe.Timer.delay() so I'm using Sys.sleep() and it seems to work fine.
This commit is contained in:
Jakkzero 2021-02-26 12:52:40 +00:00 committed by GitHub
parent 8e4caab050
commit 6155864d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
package;
import Sys.sleep;
import discord_rpc.DiscordRpc;
import haxe.Timer;
using StringTools;
@ -20,11 +20,9 @@ class DiscordClient
while (true)
{
trace("process called");
DiscordRpc.process();
trace("pre-delay");
Timer.delay(continue, 2000);
trace("post-delay");
sleep(2);
trace("Discord Client Update");
}
DiscordRpc.shutdown();