Fix undefined login callback call when connection timed out

fork
Chotiwat Chawannakul 12 years ago
parent ca317f56d9
commit 84318676c6

@ -577,8 +577,8 @@ ImapConnection.prototype.connect = function(loginCb) {
});
this._state.conn.connect(this._options.port, this._options.host);
this._state.tmrConn = setTimeout(this._fnTmrConn.bind(this),
this._options.connTimeout, loginCb);
this._state.tmrConn = setTimeout(this._fnTmrConn.bind(this, loginCb),
this._options.connTimeout);
};
ImapConnection.prototype.isAuthenticated = function() {

Loading…
Cancel
Save