/// <summary> 取消登录 </summary> public void CancelLogin() { lock (mLockObj) { ThreadUtil.Interrupt(mTaskThread); if (mCurrentHttpTask != null) { mCurrentHttpTask.Cancel(); } setLoginState(STATE_LOGIN_CANCEL); mTaskThread = null; } }
/// <summary> 取消登录 </summary> public void CancelLogin() { lock (mLockObj) { ThreadUtil.Interrupt(mTaskThread); if (mCurrentHttpTask != null) { mCurrentHttpTask.Cancel(); } setLoginState(STATE_LOGIN_CANCEL); mTaskThread = null; } }