Fix beep method not completing promise in some situation

This commit is contained in:
Chrystian Huot 2020-08-23 08:06:54 -04:00
parent 0f21e399ac
commit 870109e93a
2 changed files with 8 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- Change config.options.useDimmer to config.options.dimmerDelay.
- Fix potential error in handling keypadBeeps styles.
- Change handling of skip delay on client.
- Fix beep method not completing promise in some situation.
# Version 4.6

View file

@ -179,7 +179,13 @@ export class AppRdioScannerService implements OnDestroy {
const gn = context.createGain();
const seq = this.config?.keypadBeeps[style] || [];
const seq = this.config?.keypadBeeps[style];
if (!Array.isArray(seq) || !seq.length) {
resolve();
return;
}
gn.gain.value = .1;