Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from eday/master

Check for multiple error/close/timeouts when idle.
  • Loading branch information...
commit cab5e1c6fbd5228bbddabc5790202bbd7caeb632 2 parents 94092ea + 9552832
@godsflaw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  smtp_client.js
View
2  smtp_client.js
@@ -110,7 +110,7 @@ function SMTPClient(port, host, timeout, enable_tls) {
if (self.state == STATE_IDLE) {
self.state = STATE_DEAD;
}
- else if (self.state != STATE_DESTROYED) {
+ else if (self.state != STATE_DEAD && self.state != STATE_DESTROYED) {
if (!error) {
error = '';
}
Please sign in to comment.
Something went wrong with that request. Please try again.