Skip to content

Commit ffc4b4a

Browse files
committed
Fix issue handling connection error during secure startup
1 parent 144062e commit ffc4b4a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
In the next release ...
2+
3+
- Fix issue handling connection error during secure startup.
4+
15
1.8.0 (2023-12-14)
26
------------------
37

src/client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,8 @@ export class Client {
278278
writer.startupSSL();
279279

280280
const abort = (error: Error) => {
281-
if (!this.handleError(error)) {
282-
throw new Error("Internal error occurred while establishing connection");
283-
}
281+
this.handleError(error);
284282
this.events.connect.emit(error);
285-
this.end();
286283
}
287284

288285
const startup = (stream?: Socket) => {

0 commit comments

Comments
 (0)