diff --git a/src/client/app/common/scripts/stream.ts b/src/client/app/common/scripts/stream.ts index 3fbfa4b63..7456c0b07 100644 --- a/src/client/app/common/scripts/stream.ts +++ b/src/client/app/common/scripts/stream.ts @@ -89,8 +89,10 @@ export default class Stream extends EventEmitter { */ @autobind private onClose() { - this.state = 'reconnecting'; - this.emit('_disconnected_'); + if (this.state == 'connected') { + this.state = 'reconnecting'; + this.emit('_disconnected_'); + } } /**