fix: wrong error message checked

v1.18.x
Julian Lam 4 years ago
parent ec6d1e2321
commit a9bb108802

@ -90,7 +90,7 @@ async function onConnect(socket) {
try {
await validateSession(socket, '[[error:invalid-session]]');
} catch (e) {
if (e.message === 'error:invalid-session') {
if (e.message === '[[error:invalid-session]]') {
socket.emit('event:invalid_session');
return;
}

Loading…
Cancel
Save