From e3dbf9d47952c63fcb1509954c756617ff0c8e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= <2pi_r2@gmx.de> Date: Mon, 9 May 2022 14:44:43 +0200 Subject: [PATCH] fix(connection): close connection when not open yet (#20) --- 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; }