bugfix in dialogflow

This commit is contained in:
Dave Horton
2021-02-18 12:59:05 -05:00
parent a7e0fb2e8a
commit 8b3ffe911d
3 changed files with 37 additions and 28 deletions

View File

@@ -342,7 +342,7 @@ class Dialogflow extends Task {
if (this.events.includes('stop-play')) {
this._performHook(cs, this.eventHook, {event: 'stop-play', data: {path: evt.path}});
}
this.logger.info(`finished ${evt.path}, queued tasks: ${this.queuedTasks.length}`);
this.logger.info(`finished ${evt.path}, queued tasks: ${(this.queuedTasks || []).length}`);
if (this.curentAudioFile === evt.path) {
this.playInProgress = false;