mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 17:42:48 +00:00
fix infinite loop on audio listening
This commit is contained in:
@@ -377,6 +377,9 @@ loop:
|
|||||||
if !conn.voiceConnection.Ready {
|
if !conn.voiceConnection.Ready {
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fix for 100% cpu usage issue
|
||||||
|
time.Sleep(time.Second * 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user