From cdec1f16816e786ce7effee4bcefbe2fd4e9cf6f Mon Sep 17 00:00:00 2001 From: mathe42 <2pi_r2@gmx.de> Date: Mon, 9 May 2022 14:43:48 +0200 Subject: [PATCH] fix(connection):close connection when not open yet --- client/basic/connection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/basic/connection.ts b/client/basic/connection.ts index 12306f6..467a509 100644 --- a/client/basic/connection.ts +++ b/client/basic/connection.ts @@ -22,6 +22,7 @@ export class SMTPConnection { ready: Promise; async close() { + await this.ready; if (!this.conn) { return; }