Skip to content

Commit

Permalink
Wrap socket errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Sep 14, 2024
1 parent 6fd09ef commit 97ba6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ class Connection extends EventEmitter {

const controller = new AbortController();
const onError = (err: Error) => {
controller.abort(err);
controller.abort(this.wrapSocketError(err));
};
const onClose = () => {
this.debug.log('connection to ' + this.config.server + ':' + this.config.options.port + ' closed');
Expand Down

0 comments on commit 97ba6df

Please sign in to comment.