mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
Fix for play issue (#1223)
See https://github.com/jambonz/jambonz-feature-server/issues/1222
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user