parent
230d4abe0c
commit
30f8ab773f
5 changed files with 11 additions and 14 deletions
|
|
@ -49,10 +49,10 @@
|
|||
let socket = get(socketStore);
|
||||
|
||||
try {
|
||||
if (socket) {
|
||||
socket.close(1000, 'logout');
|
||||
}
|
||||
} catch (e) {}
|
||||
socket?.close(1000, 'logout');
|
||||
} catch (e) {
|
||||
console.log('error on disconnect', e);
|
||||
}
|
||||
|
||||
socketStore.set(null);
|
||||
if (browser && 'cookieStore' in window) await cookieStore.delete('logged_in');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue