QQErrorCode code = ex.getError();
if(code == QQErrorCode.INVALID_LOGIN_AUTH) {
relogin();
} else if(code == QQErrorCode.IO_ERROR || code == QQErrorCode.IO_TIMEOUT){
//粗线了IO异常,直接报网络错误
getContext().fireNotify(new QQNotifyEvent(QQNotifyEvent.Type.NET_ERROR, ex));
}else{
LOG.warn("poll msg unexpected error, ignore it ...", ex);
relogin();
doPollMsg();
}