Skip to content

Commit 83a35cd

Browse files
authored
On response 221, close the connection and return.
1 parent 536ff89 commit 83a35cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sendmail.js

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

239239
case 221: // bye
240+
sock.end();
241+
callback(null, msg);
242+
break;
240243
case 235: // verify ok
241244
case 250: // operation OK
242245
if(upgraded != true){

0 commit comments

Comments
 (0)