Fixed keeped avatar after disconnect
This commit is contained in:
parent
0d2c1bc199
commit
e7eff5da24
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue