From 4b0ceabcb0e1bb9e7dcb79d9fca82a5fe1435aa6 Mon Sep 17 00:00:00 2001 From: Matvei Andrienko Date: Wed, 27 Nov 2024 17:26:07 +0100 Subject: [PATCH] properly rollback device --- packages/client/src/devices/InputMediaDeviceManager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/devices/InputMediaDeviceManager.ts b/packages/client/src/devices/InputMediaDeviceManager.ts index ad31d160e9..8dce534c35 100644 --- a/packages/client/src/devices/InputMediaDeviceManager.ts +++ b/packages/client/src/devices/InputMediaDeviceManager.ts @@ -215,6 +215,7 @@ export abstract class InputMediaDeviceManager< await this.applySettingsToStream(); } catch (error) { this.state.setDevice(prevDeviceId); + await this.applySettingsToStream(); throw error; } }