This commit is contained in:
starnakin 2024-05-15 16:36:44 +02:00
parent 8a8e2417c3
commit 6bc7270dfb
2 changed files with 3 additions and 3 deletions

View File

@ -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';

View File

@ -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;
}