Fixed panic on song download fail

This commit is contained in:
Matthieu Grieger 2014-12-31 14:51:36 -08:00
parent f6c86f8566
commit 83f35f2484

View file

@ -96,7 +96,8 @@ func (dj *mumbledj) OnSongFinished() {
if err := dj.currentSong.Download(); err == nil {
dj.currentSong.Play()
} else {
panic(err)
user.Send(AUDIO_FAIL_MSG)
dj.currentSong.Delete()
}
}
}