From 9e858f7143066b837363d2875d550b34979b6e70 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sun, 25 Feb 2018 09:49:49 -0600 Subject: [PATCH] fix infinite loop on audio listening --- server/bothandlers/sounds.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/bothandlers/sounds.go b/server/bothandlers/sounds.go index b58b90d..49a8811 100644 --- a/server/bothandlers/sounds.go +++ b/server/bothandlers/sounds.go @@ -377,6 +377,9 @@ loop: if !conn.voiceConnection.Ready { break loop } + + // fix for 100% cpu usage issue + time.Sleep(time.Second * 5) } }