(fn)
| 185 | } |
| 186 | |
| 187 | function once(fn) { |
| 188 | let called = false; |
| 189 | return (...args) => { |
| 190 | if (called) return; |
| 191 | called = true; |
| 192 | fn(...args); |
| 193 | }; |
| 194 | } |
| 195 | |
| 196 | function writeProxyError(res, message) { |
| 197 | if (res.destroyed) return; |
no outgoing calls