mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 08:33:00 -06:00
Fix more issue with audioTimer
This commit is contained in:
parent
eba36f732c
commit
b8acccfccc
|
|
@ -243,7 +243,7 @@ export class AppRadioService implements OnDestroy {
|
||||||
EVENTS.forEach((event) => document.body.addEventListener(event, resume));
|
EVENTS.forEach((event) => document.body.addEventListener(event, resume));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.startAudioTimer();
|
this.resetAudioTimer();
|
||||||
|
|
||||||
}, (error: Error) => {
|
}, (error: Error) => {
|
||||||
this.skip(true);
|
this.skip(true);
|
||||||
|
|
@ -462,6 +462,11 @@ export class AppRadioService implements OnDestroy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private resetAudioTimer(): void {
|
||||||
|
this.stopAudioTimer();
|
||||||
|
this.startAudioTimer();
|
||||||
|
}
|
||||||
|
|
||||||
private startAudioTimer(): void {
|
private startAudioTimer(): void {
|
||||||
if (this.audioTimer === null) {
|
if (this.audioTimer === null) {
|
||||||
this.emitTimeEvent();
|
this.emitTimeEvent();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue