Skip to content

Commit

Permalink
fix(connection): close connection when not open yet (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathe42 authored May 9, 2022
1 parent e8268bf commit e3dbf9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/basic/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class SMTPConnection {
ready: Promise<void>;

async close() {
await this.ready;
if (!this.conn) {
return;
}
Expand Down

0 comments on commit e3dbf9d

Please sign in to comment.