Voice connection will now disconnect again after playback

This commit is contained in:
da
2017-05-12 12:38:29 +02:00
parent 0468c155ae
commit 207fce5166
+1
View File
@@ -364,6 +364,7 @@ func playSound(play *Play, vc *discordgo.VoiceConnection) (err error) {
time.Sleep(time.Millisecond * time.Duration(play.Sound.PartDelay)) time.Sleep(time.Millisecond * time.Duration(play.Sound.PartDelay))
mutex.Lock() mutex.Lock()
delete(queues, play.GuildID) delete(queues, play.GuildID)
vc.Disconnect()
mutex.Unlock() mutex.Unlock()
return nil return nil
} }