Fixed issue with client trying to destroy fireplace when it already was destroyed

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-24 16:43:31 +01:00
parent 7053132cfc
commit 157cb80c93
3 changed files with 5 additions and 3 deletions

View File

@@ -1600,9 +1600,11 @@ function onepage_load(){
socket.emit("list", chan.toLowerCase());
}else if(url_split[3] === ""){
clearTimeout(width_timeout);
if(fireplace_initiated){
fireplace_initiated = false;
Player.fireplace.destroy();
$("#fireplace_player").css("display", "none");
}
$("#channel-load").css("display", "block");
window.scrollTo(0, 0);