@ -162,7 +162,7 @@ ImapConnection.prototype.connect = function(loginCb) {
self.emit('close', had_error);
});
state.conn.on('error', function(err) {
socket.on('error', function(err) {
clearTimeout(state.tmrConn);
err.level = 'socket';
if (state.status === STATES.NOCONNECT)