Skip to content

Commit

Permalink
properly rollback device
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko committed Nov 27, 2024
1 parent f8d6359 commit 4b0ceab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/devices/InputMediaDeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export abstract class InputMediaDeviceManager<
await this.applySettingsToStream();
} catch (error) {
this.state.setDevice(prevDeviceId);
await this.applySettingsToStream();
throw error;
}
}
Expand Down

0 comments on commit 4b0ceab

Please sign in to comment.