mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -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;
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue