diff --git a/src/component/internal/connection.ts b/src/component/internal/connection.ts index e90322a9..977e71c2 100644 --- a/src/component/internal/connection.ts +++ b/src/component/internal/connection.ts @@ -123,8 +123,6 @@ export class NekoConnection extends EventEmitter { } public async connect(video?: string): Promise { - this._shouldReconnect = true - await this._websocketConnect() if (video && !this._state.webrtc.videos.includes(video)) { @@ -132,6 +130,8 @@ export class NekoConnection extends EventEmitter { } this._webrtcConnect(video) + + this._shouldReconnect = true } public disconnect() {