Skip to content

Commit

Permalink
Fix issue handling connection error during secure startup
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Dec 15, 2023
1 parent 144062e commit ffc4b4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
In the next release ...

- Fix issue handling connection error during secure startup.

1.8.0 (2023-12-14)
------------------

Expand Down
5 changes: 1 addition & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,8 @@ export class Client {
writer.startupSSL();

const abort = (error: Error) => {
if (!this.handleError(error)) {
throw new Error("Internal error occurred while establishing connection");
}
this.handleError(error);
this.events.connect.emit(error);
this.end();
}

const startup = (stream?: Socket) => {
Expand Down

0 comments on commit ffc4b4a

Please sign in to comment.