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.cs中的线程下载未添加下载完成的回调代理 #50

Open
BoloYoung opened this issue Jul 21, 2018 · 0 comments
Open

Comments

@BoloYoung
Copy link

image

如图,作者在ProgressChanged中添加的完成判定在下载在文件时会无法获取到判断成功的回调信息,所以下载时NotiConst.UPDATE_DOWNLOAD的消息无法发出,导致更新时GameManager下OnUpdateResource方法中 while (!(IsDownOK(localfile))) { yield return new WaitForEndOfFrame(); } 这一句话无限判断失败,从而无法顺利完成更新。

加上下载完成的回调,能百分百触发下载完成的信号发送,完成更新过程

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

1 participant