minor fix for gather

This commit is contained in:
Dave Horton
2021-09-29 18:15:52 -04:00
parent a3d3878218
commit a779ead79f
2 changed files with 3 additions and 1 deletions

View File

@@ -195,10 +195,12 @@ class TaskGather extends Task {
if (this.sayTask && !this.sayTask.killed) {
this.sayTask.removeAllListeners('playDone');
this.sayTask.kill(cs);
this.sayTask = null;
}
if (this.playTask && !this.playTask.killed) {
this.playTask.removeAllListeners('playDone');
this.playTask.kill(cs);
this.playTask = null;
}
}

View File

@@ -93,7 +93,7 @@ class TaskSay extends Task {
this.killPlayToConfMember(this.ep, memberId, confName);
}
else {
await this.ep.api('uuid_break', this.ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));
this.ep.api('uuid_break', this.ep.uuid);
}
}
}