Exemplo n.º 1
0
        /// <summary> 取消登录 </summary>
        public void CancelLogin()
        {
            lock (mLockObj)
            {
                ThreadUtil.Interrupt(mTaskThread);

                if (mCurrentHttpTask != null)
                {
                    mCurrentHttpTask.Cancel();
                }

                setLoginState(STATE_LOGIN_CANCEL);
                mTaskThread = null;
            }
        }