diff --git a/client/basic/client.ts b/client/basic/client.ts index 2ca55d3..bef8663 100644 --- a/client/basic/client.ts +++ b/client/basic/client.ts @@ -334,7 +334,7 @@ export class SMTPClient { ) { this.#connection.writeCmdAndAssert(CommandCode.READY, "STARTTLS"); - await this.#connection.cleanupForStartTLS() + await this.#connection.cleanupForStartTLS(); const conn = await Deno.startTls(this.#connection.conn, { hostname: this.config.connection.hostname, diff --git a/client/basic/connection.ts b/client/basic/connection.ts index 91331f8..d7f10da 100644 --- a/client/basic/connection.ts +++ b/client/basic/connection.ts @@ -37,8 +37,8 @@ export class SMTPConnection { } async cleanupForStartTLS() { - await this.#reader.cancel() - await this.#writer.close() + await this.#reader.cancel(); + await this.#writer.close(); } async readLine() { @@ -71,7 +71,6 @@ export class SMTPConnection { } } - public assertCode(cmd: Command | null, code: number, msg?: string) { if (!cmd) { throw new Error(`invalid cmd`);