Don't log error when websocket is closed
This will stop showing up in Sentry now.
This commit is contained in:
parent
339936c5ee
commit
d3ab5d6336
|
@ -164,6 +164,10 @@ export class Session {
|
||||||
}
|
}
|
||||||
this.ws.send(JSON.stringify(msg));
|
this.ws.send(JSON.stringify(msg));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (this.ws.readyState === WebSocket.CLOSED) {
|
||||||
|
// User closed their end, no big deal.
|
||||||
|
return;
|
||||||
|
}
|
||||||
logError(err);
|
logError(err);
|
||||||
await this.teardown();
|
await this.teardown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue