Skip to content

Commit

Permalink
Line wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Oct 1, 2020
1 parent 284d1a2 commit 6cf5526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ export class Client {
} else {
// Don't raise ECONNRESET errors - they can & should be
// ignored during disconnect.
if (this.ending && error.errno === constants.errno.ECONNRESET) {
return
}
if (this.ending && error.errno ===
constants.errno.ECONNRESET) return;

this.events.end.emit({});
}
});
Expand Down

0 comments on commit 6cf5526

Please sign in to comment.