1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-23 23:33:55 +00:00

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 17a18f080e
commit 580f41f09d

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();