fix mutex issue

This commit is contained in:
Tyler Stiene 2021-01-04 21:27:30 -05:00
parent a735f3f62f
commit 7947e93a6d

View File

@ -163,6 +163,7 @@ func discordReceivePCM(v *discordgo.VoiceConnection, die chan bool) {
case fromDiscordMap[p.SSRC].pcm <- p.PCM[0:480]:
default:
log.Println("fromDiscordMap buffer full. Dropping packet")
discordMutex.Unlock()
continue
}
select {