if (session.getState() == QQSession.State.OFFLINE) {
throw new IllegalArgumentException("client is aready offline !!!");
}
ProcModule procModule = (ProcModule) getModule(QQModule.Type.PROC);
return procModule.doLogout(new QQActionListener() {
public void onActionEvent(QQActionEvent event) {
// 无论退出登录失败还是成功,都需要释放资源
if (event.getType() == QQActionEvent.Type.EVT_OK
|| event.getType() == QQActionEvent.Type.EVT_ERROR) {
session.setState(QQSession.State.OFFLINE);