Commit 777d706
committed
fix(js): make setupListeners idempotent to avoid double-registration
addListener appends subscriptions without de-duping, so a second registerGlobals()
left two live listeners per blocking event and invoked each app handler twice per
round. Guard setupListeners with a listenersSetUp flag so repeat calls are no-ops.1 parent a8ea041 commit 777d706
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
0 commit comments