Feat 1179 race issue with play verb (#1183)

* Fixed race issue between queueCommand false and queueCommand true when play task is involved

https://github.com/jambonz/jambonz-feature-server/issues/1179

* removed unnecessary emitter

* added destroy mechanism for stickyEventEmitter

* clearing stickyEventEmitter

* memory leak fix
This commit is contained in:
rammohan-y
2025-05-12 05:55:48 +05:30
committed by GitHub
parent 4ff5c845de
commit 5c8237b382
4 changed files with 108 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ class Task extends Emitter {
this.data = data;
this.actionHook = this.data.actionHook;
this.id = data.id;
this.taskId = this.name + '-' + uuidv4();
this._killInProgress = false;
this._completionPromise = new Promise((resolve) => this._completionResolver = resolve);