diff options
Diffstat (limited to 'src/client/app/common/scripts')
| -rw-r--r-- | src/client/app/common/scripts/stream.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/app/common/scripts/stream.ts b/src/client/app/common/scripts/stream.ts index 3fbfa4b631..7456c0b074 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_'); + } } /** |