mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fix bug where task.kill is not passed cs (#1315)
This commit is contained in:
@@ -72,7 +72,7 @@ class TaskListen extends Task {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.info(err, `TaskListen:exec - error ${this.url}`);
|
this.logger.info(err, `TaskListen:exec - error ${this.url}`);
|
||||||
}
|
}
|
||||||
if (this.transcribeTask) this.transcribeTask.kill();
|
if (this.transcribeTask) this.transcribeTask.kill(cs);
|
||||||
this._removeListeners(ep);
|
this._removeListeners(ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class BackgroundTaskManager extends Emitter {
|
|||||||
this.logger.info(`stopping background task: ${type}`);
|
this.logger.info(`stopping background task: ${type}`);
|
||||||
task.removeAllListeners();
|
task.removeAllListeners();
|
||||||
task.span.end();
|
task.span.end();
|
||||||
task.kill();
|
task.kill(this.cs);
|
||||||
// Remove task from managed List
|
// Remove task from managed List
|
||||||
this.tasks.delete(type);
|
this.tasks.delete(type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user