mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Fix: should not send call events when playing empty audio stream
This commit is contained in:
parent
798fae505e
commit
48df618d93
|
|
@ -298,7 +298,7 @@ export class AppRadioService implements OnDestroy {
|
|||
let watchdog = null;
|
||||
|
||||
const progressHandler = () => {
|
||||
if (playing) {
|
||||
if (this._call.current && playing) {
|
||||
this._emitTimeEvent();
|
||||
|
||||
if (watchdog) {
|
||||
|
|
@ -310,14 +310,16 @@ export class AppRadioService implements OnDestroy {
|
|||
};
|
||||
|
||||
const startHandler = () => {
|
||||
playing = true;
|
||||
if (this._call.current) {
|
||||
playing = true;
|
||||
|
||||
this._emitCallEvent();
|
||||
this._emitQueueEvent();
|
||||
this._emitCallEvent();
|
||||
this._emitQueueEvent();
|
||||
}
|
||||
};
|
||||
|
||||
const stopHandler = () => {
|
||||
if (playing) {
|
||||
if (this._call.current && playing) {
|
||||
playing = false;
|
||||
|
||||
if (watchdog) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue