Possible fix for crash after skipping more than once

This commit is contained in:
Matthieu Grieger 2015-01-08 18:17:36 -08:00
parent 07787f9186
commit 5d91ca95f4

View file

@ -195,8 +195,6 @@ func skip(user *gumble.User, username string, admin, playlistSkip bool) {
panic(errors.New("An error occurred while stopping the current song."))
}
}
} else {
panic(errors.New("An error occurred while adding a skip to the current playlist."))
}
} else {
user.Send(NO_PLAYLIST_PLAYING_MSG)
@ -220,8 +218,6 @@ func skip(user *gumble.User, username string, admin, playlistSkip bool) {
panic(errors.New("An error occurred while stopping the current song."))
}
}
} else {
panic(errors.New("An error occurred while adding a skip to the current song."))
}
}
} else {