bababoy
This commit is contained in:
parent
8a8e2417c3
commit
6bc7270dfb
@ -208,7 +208,7 @@ class Client
|
||||
else
|
||||
{
|
||||
this.me = undefined;
|
||||
this.notice.stop();
|
||||
await this.notice.stop();
|
||||
document.getElementById('navbarLoggedOut').classList.remove('d-none');
|
||||
document.getElementById('navbarLoggedIn').classList.add('d-none');
|
||||
document.getElementById('navbarDropdownButton').innerHTML = 'Me';
|
||||
|
@ -47,10 +47,10 @@ export default class Notice {
|
||||
};
|
||||
}
|
||||
|
||||
stop() {
|
||||
async stop() {
|
||||
if (this._socket) {
|
||||
while (!this._socket.OPEN)
|
||||
sleep(100);
|
||||
await sleep(100);
|
||||
this._socket.close()
|
||||
this._socket = undefined;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user