mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05: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:
parent
17a18f080e
commit
580f41f09d
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
package;
|
package;
|
||||||
|
|
||||||
|
import Sys.sleep;
|
||||||
import discord_rpc.DiscordRpc;
|
import discord_rpc.DiscordRpc;
|
||||||
import haxe.Timer;
|
|
||||||
|
|
||||||
using StringTools;
|
using StringTools;
|
||||||
|
|
||||||
|
@ -20,11 +20,9 @@ class DiscordClient
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
trace("process called");
|
|
||||||
DiscordRpc.process();
|
DiscordRpc.process();
|
||||||
trace("pre-delay");
|
sleep(2);
|
||||||
Timer.delay(continue, 2000);
|
trace("Discord Client Update");
|
||||||
trace("post-delay");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DiscordRpc.shutdown();
|
DiscordRpc.shutdown();
|
||||||
|
|
Loading…
Reference in a new issue