From b46e929ad53ef7da1fb90c58c98feca23ec764eb Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Mon, 2 Oct 2023 14:46:07 +0200 Subject: [PATCH] fix(ui): fix control stop ev --- frontend/app/player/web/assist/RemoteControl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/player/web/assist/RemoteControl.ts b/frontend/app/player/web/assist/RemoteControl.ts index f79acd764..1e4424f06 100644 --- a/frontend/app/player/web/assist/RemoteControl.ts +++ b/frontend/app/player/web/assist/RemoteControl.ts @@ -42,8 +42,8 @@ export default class RemoteControl { }); socket.on('control_rejected', ({ meta, data }) => { if (data === socket.id) { - this.toggleRemoteControl(false); if (this.store.get().remoteControl === RemoteControlStatus.Enabled) this.onEnd(); + this.toggleRemoteControl(false); } this.onReject(); if (this.store.get().remoteControl === RemoteControlStatus.Requesting) {