1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-09 16:42:48 +00:00

fix infinite loop on audio listening

This commit is contained in:
2018-02-25 09:49:49 -06:00
parent 02fe8e1748
commit 9e858f7143

View File

@@ -377,6 +377,9 @@ loop:
if !conn.voiceConnection.Ready {
break loop
}
// fix for 100% cpu usage issue
time.Sleep(time.Second * 5)
}
}