Fix https://github.com/matthieugrieger/mumbledj/issues/43: Queue freezing up on download fail
This commit is contained in:
parent
873748bef3
commit
180761117b
|
@ -3,6 +3,7 @@ MumbleDJ Changelog
|
|||
|
||||
### February 18, 2015 -- `v2.6.2`
|
||||
* Fixed bot crashing after 5 minutes if there is nothing in the song queue.
|
||||
* Fixed queue freezing up if the download of the first song in queue fails.
|
||||
|
||||
### February 17, 2015 -- `v2.6.0, v2.6.1`
|
||||
* Added caching system to MumbleDJ.
|
||||
|
|
|
@ -192,6 +192,7 @@ func add(user *gumble.User, username, url string) {
|
|||
} else {
|
||||
dj.SendPrivateMessage(user, AUDIO_FAIL_MSG)
|
||||
dj.queue.CurrentSong().Delete()
|
||||
dj.queue.OnSongFinished()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,6 +217,7 @@ func add(user *gumble.User, username, url string) {
|
|||
} else {
|
||||
dj.SendPrivateMessage(user, AUDIO_FAIL_MSG)
|
||||
dj.queue.CurrentSong().Delete()
|
||||
dj.queue.OnSongFinished()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Reference in a new issue