Skip to content

Commit d3d04fd

Browse files
ShogunPandatonivj5
andauthored
http: fix condition
Co-authored-by: Toni Villena <[email protected]>
1 parent f8244c0 commit d3d04fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ function socketOnError(e) {
763763
// Ignore further errors
764764
this.removeListener('error', socketOnError);
765765

766-
if (!this.listenerCount('error') === 0) {
766+
if (this.listenerCount('error') === 0) {
767767
this.on('error', noop);
768768
}
769769

0 commit comments

Comments
 (0)