From bdc704a82ceda57c14658f8d4a6652323caae63e Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Fri, 29 May 2020 12:36:24 -0400 Subject: [PATCH] Fix continuous play not playing next call when a call has invalid audio --- .../src/app/components/rdio-scanner/rdio-scanner.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/components/rdio-scanner/rdio-scanner.service.ts b/client/src/app/components/rdio-scanner/rdio-scanner.service.ts index 7bca26e..c258f03 100644 --- a/client/src/app/components/rdio-scanner/rdio-scanner.service.ts +++ b/client/src/app/components/rdio-scanner/rdio-scanner.service.ts @@ -308,7 +308,7 @@ export class AppRdioScannerService implements OnDestroy { call = this.callQueue.shift(); } - if (call?.audio?.data?.length) { + if (call?.audio) { const arrayBuffer = new ArrayBuffer(call.audio.data.length); const arrayBufferView = new Uint8Array(arrayBuffer); @@ -342,7 +342,7 @@ export class AppRdioScannerService implements OnDestroy { }, 500); }).catch(() => this.skip()); }, () => { - this.event.emit({ call: null, queue: this.callQueue.length }); + this.event.emit({ call, queue: this.callQueue.length }); this.skip(); });