mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
minor fix for gather
This commit is contained in:
@@ -195,10 +195,12 @@ class TaskGather extends Task {
|
|||||||
if (this.sayTask && !this.sayTask.killed) {
|
if (this.sayTask && !this.sayTask.killed) {
|
||||||
this.sayTask.removeAllListeners('playDone');
|
this.sayTask.removeAllListeners('playDone');
|
||||||
this.sayTask.kill(cs);
|
this.sayTask.kill(cs);
|
||||||
|
this.sayTask = null;
|
||||||
}
|
}
|
||||||
if (this.playTask && !this.playTask.killed) {
|
if (this.playTask && !this.playTask.killed) {
|
||||||
this.playTask.removeAllListeners('playDone');
|
this.playTask.removeAllListeners('playDone');
|
||||||
this.playTask.kill(cs);
|
this.playTask.kill(cs);
|
||||||
|
this.playTask = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class TaskSay extends Task {
|
|||||||
this.killPlayToConfMember(this.ep, memberId, confName);
|
this.killPlayToConfMember(this.ep, memberId, confName);
|
||||||
}
|
}
|
||||||
else {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user