示例#1
0
        /// <summary>
        ///   中止下载
        /// </summary>
        public void AbortDownload()
        {
            StopAllCoroutines();

            if (verifier_ != null)
            {
                verifier_.Abort();
                verifier_ = null;
            }
            if (ab_download_ != null)
            {
                ab_download_.Abort();
                ab_download_ = null;
            }

            UpdateState(emState.Abort);
            Done();
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        public void AbortUpdate()
        {
            StopAllCoroutines();

            if (verifier_ != null)
            {
                verifier_.Abort();
                verifier_ = null;
            }
            if (file_download_ != null)
            {
                file_download_.Abort();
                file_download_ = null;
            }
            if (ab_download_ != null)
            {
                ab_download_.Abort();
                ab_download_ = null;
            }
            SaveDownloadCacheData();
            UpdateState(emState.Abort);
            Done();
        }