-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent double sound detectors set up (#1371)
Calling `startSpeakingWhileMutedDetection` multiple types without awaiting leads to multiple sound detectors being set up. Calling `stopSpeakingWhileMutedDetection` afterwords cleans up only one of them. Since `startSpeakingWhileMutedDetection` is called in a callback to an Rx observable, it's very possible that multiple sound detectors will be set up when the state updates fire rapidly. This fix prevents that.
- Loading branch information
1 parent
ecf19af
commit 51c9198
Showing
2 changed files
with
49 additions
and
35 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