Fixed keeped avatar after disconnect

This commit is contained in:
WolverinDEV 2018-11-25 13:57:48 +01:00
parent 0d2c1bc199
commit e7eff5da24
2 changed files with 3 additions and 1 deletions

View file

@ -238,10 +238,11 @@ class TSClient {
break;
}
this.selectInfo.setCurrentSelected(null);
this.channelTree.reset();
this.voiceConnection.dropSession();
if(this.serverConnection) this.serverConnection.disconnect();
this.controlBar.update_connection_state();
this.selectInfo.setCurrentSelected(null);
this.selectInfo.update_banner();
}
}

View file

@ -148,6 +148,7 @@ class Hostbanner {
private generate_tag?() : Promise<JQuery<HTMLElement>> {
if(!this.client.connected) return undefined;
const server = this.client.channelTree.server;
if(!server) return undefined;
if(!server.properties.virtualserver_hostbanner_gfx_url) return undefined;