Example #1
0
        /// <summary>
        ///   取消更新
        /// </summary>
        public void CancelUpdate()
        {
            StopAllCoroutines();

            if (verifier_ != null)
            {
                verifier_.Abort();
                verifier_ = null;
            }
            if (file_download_ != null)
            {
                file_download_.Cancel();
                file_download_ = null;
            }
            if (ab_download_ != null)
            {
                ab_download_.Cancel();
                ab_download_ = null;
            }
            SaveDownloadCacheData();
            UpdateState(emState.Cancel);
            Done();
        }
Example #2
0
    /// <summary>
    ///   取消更新
    /// </summary>
    public void CancelUpdate()
    {
        StopAllCoroutines();

        if (_verifier != null)
        {
            _verifier.Abort();
            _verifier = null;
        }
        if (_file_download != null)
        {
            _file_download.Cancel();
            _file_download = null;
        }
        if (_ab_download != null)
        {
            _ab_download.Cancel();
            _ab_download = null;
        }
        SaveDownloadCacheData();
        UpdateState(EmState.Cancel);
        Done();
    }