Fix for play issue (#1223)

See https://github.com/jambonz/jambonz-feature-server/issues/1222
This commit is contained in:
rammohan-y
2025-05-29 20:02:03 +05:30
committed by GitHub
parent 4386df993c
commit e975511df5
2 changed files with 9 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ class StickyEventEmitter extends EventEmitter {
this.onSuccess();
}
this._onceListeners.delete(event);
// return from here as the event listener is already called
// this is to avoid calling the native emit method which
// will call the event listener again
return true;
}
return super.emit(event, ...args);