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
4e437ce3fa
commit
fdecd95cca
|
@ -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 New Issue