Fix connection timeout

fork
Brian White 14 years ago
parent 3f5164b3b6
commit a9e8763263

@ -95,7 +95,7 @@ ImapConnection.prototype.connect = function(loginCb) {
this._state.conn = net.createConnection(this._options.port, this._options.host); this._state.conn = net.createConnection(this._options.port, this._options.host);
this._state.tmrConn = setTimeout(this._fnTmrConn, this._options.connTimeout, loginCb); this._state.tmrConn = setTimeout(this._fnTmrConn.bind(this), this._options.connTimeout, loginCb);
this._state.conn.setKeepAlive(true); this._state.conn.setKeepAlive(true);
if (this._options.secure) { if (this._options.secure) {

Loading…
Cancel
Save