fix mutex issue
This commit is contained in:
parent
a735f3f62f
commit
7947e93a6d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user