Skip to content

Commit

Permalink
fix(bridge): 🚑 Listener only fired once
Browse files Browse the repository at this point in the history
  • Loading branch information
hampoelz committed Sep 14, 2023
1 parent 287551c commit 7320ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Channel extends EventEmitter {
* Alias for `channel.on(eventName, listener)`.
*/
override addListener(eventName: string, listener: (...args: any[]) => void): this {
return super.once(eventName, listener);
return super.addListener(eventName, listener);
}

/**
Expand Down

0 comments on commit 7320ad6

Please sign in to comment.