| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8c2d0f9 commit 2882e60
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -813,10 +813,7 @@ const requestHeaderFieldsTooLargeResponse = Buffer.from( | |||
| 813 | 813 | function socketOnError(e) { | |
| 814 | 814 | // Ignore further errors | |
| 815 | 815 | this.removeListener('error', socketOnError); | |
| 816 | - | ||
| 817 | - if (this.listenerCount('error') === 0) { | ||
| 818 | - this.on('error', noop); | ||
| 819 | - } | ||
| 816 | + this.on('error', noop); | ||
| 820 | 817 | ||
| 821 | 818 | if (!this.server.emit('clientError', e, this)) { | |
| 822 | 819 | // Caution must be taken to avoid corrupting the remote peer. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments