Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThreadManager下载问题 #59

Open
ghost opened this issue Nov 23, 2018 · 0 comments
Open

ThreadManager下载问题 #59

ghost opened this issue Nov 23, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 23, 2018

你好,我是一个小白,目前正在学习这套框架。我发现按照网上的方法,开启更新模式后,下载会卡住,具体表现就是一直在下载,但是下载进度总是为0。我使用的服务器是本地IIS,按照网上的办法搭建的。
`void OnDownloadFile(List evParams) {
UnityEngine.Debug.LogError("OnDownloadFile 下载文件");
string url = evParams[0].ToString();
currDownFile = evParams[1].ToString();

        using (WebClient client = new WebClient()) {
            sw.Start();
            client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
            client.DownloadFileAsync(new System.Uri(url), currDownFile);
        }
    }`

具体就是卡在了DownloadFileAsync这句里面。请问下可能是什么原因呢?会不会是我搭建的IIS有问题,导致不能下载。

@ghost
Copy link
Author

ghost commented Nov 29, 2018

这个已经解决了,应该是新版本的线程下载没有添加下载完成的回调

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants