Don't use errors for things that are really not errors

This commit is contained in:
Marks Polakovs 2021-05-12 20:36:54 +01:00
parent 1bcafe3e7d
commit e95804ef56

View file

@ -44,7 +44,7 @@ export class WebRTCStreamer extends Streamer {
}
async stop(reason?: string): Promise<void> {
Sentry.captureException(new Error(`Connection STOP due to ${reason}`));
Sentry.captureMessage(`Connection STOP due to ${reason}`);
if (this.ws) {
this.ws.close();
this.ws = null as any;