bwmarrin / dgvoice

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

small change to allow stop <- false #15

Closed korvyr closed 6 years ago

korvyr commented 6 years ago

This will allow for a little select{} magic to check if something is still playing without killing the current playback:

select{
case stop <- false:
   // still alive and didn't kill
case stop <- true:
   // was alive, but just killed
default:
   // was already dead
}
korvyr commented 6 years ago

This seemed to cause some unknown issues with the stream not wanting to stop at all even when requested.