1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 03:19:53 +08:00

Always set progress before updating download state

Without doing so, a state change may read from an old progress value.
This commit is contained in:
Dean Herbert
2021-03-26 14:04:09 +09:00
Unverified
parent 51ab1dace4
commit 17a0b19ee7
+2 -2
View File
@@ -123,13 +123,13 @@ namespace osu.Game.Online
{
if (attachedRequest.Progress == 1)
{
State.Value = DownloadState.Importing;
Progress.Value = 1;
State.Value = DownloadState.Importing;
}
else
{
State.Value = DownloadState.Downloading;
Progress.Value = attachedRequest.Progress;
State.Value = DownloadState.Downloading;
attachedRequest.Failure += onRequestFailure;
attachedRequest.DownloadProgressed += onRequestProgress;