Skip to content

Commit 060940c

Browse files
authored
Actually end session
When a mail server waves us good bye we should end the session to avoid a potential failure.
1 parent a127636 commit 060940c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sendmail.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ module.exports = function (options) {
237237
}
238238

239239
case 221: // bye
240+
sock.end();
241+
break;
240242
case 235: // verify ok
241243
case 250: // operation OK
242244
if(upgraded != true){

0 commit comments

Comments
 (0)