forked from microsoft/MixedReality-WebRTC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable device sources when exception occur
Catch exceptions when failing to create a device track source in WebcamSource and MicrophoneSource components, and disable the component before re-throwing the exception to get Unity to log it. This ensures that the components are disabled for consistency. This is a clean-up loosely related to microsoft#335, though the code triggering that issue has been changed so the issue does not occur anymore.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters