Skip to content

Commit 89c5568

Browse files
committed
fix(connection-tls): set the processCallback during before trying to connect, so the constructor callback can be called if the server doesn't respond to the connector's request
1 parent 69ec542 commit 89c5568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/drivers/connection-tls.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export class SQLiteCloudTlsConnection extends SQLiteCloudConnection {
6666
connector = tls.connectTLS
6767
}
6868

69+
this.processCallback = callback
70+
6971
this.socket = connector(connectionOptions, () => {
7072
if (this.config.verbose) {
7173
console.debug(`SQLiteCloudTlsConnection - connected to ${this.config.host}, authorized: ${this.socket?.authorized}`)

0 commit comments

Comments
 (0)