bwmarrin / dgvoice

Discordgo Voice - A sub project to work on voice implementation for Discordgo
BSD 3-Clause "New" or "Revised" License
100 stars 39 forks source link

Goroutine listening on channel "stop" never exits #17

Open goopsie opened 5 years ago

goopsie commented 5 years ago

After the audio is done playing, Nothing happens to the goroutine that's listening on the "stop" channel

yuko1225 commented 5 years ago

I notice that too. And it cause problem because if you start another playback, you won't be able to stop the playback since it sending signal to another instance which already dead.

I end up set up another channel to notify that goroutine to exit after function return