From 580f41f09d23388fce6f8d228f860f3313f4ac2e Mon Sep 17 00:00:00 2001 From: Jakkzero <50273567+Jakkzero@users.noreply.github.com> Date: Fri, 26 Feb 2021 12:52:40 +0000 Subject: [PATCH] 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. --- source/Discord.hx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/Discord.hx b/source/Discord.hx index eb0c1f8d4..3a20ebabe 100644 --- a/source/Discord.hx +++ b/source/Discord.hx @@ -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();