Permalink
Browse files

Added destroy for release state on error.

  • Loading branch information...
1 parent 3ab4a22 commit 4c53d1ab201d16329dc5baf2d7e264ba03f9160d Eric Day committed Apr 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 smtp_client.js
View
@@ -119,6 +119,9 @@ function SMTPClient(port, host, timeout, enable_tls) {
if (self.state == STATE_IDLE) {
self.state = STATE_DEAD;
}
+ else if (self.state == STATE_RELEASED) {
+ self.destroy();
+ }
}
};
};

0 comments on commit 4c53d1a

Please sign in to comment.