mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +08:00
Don't send progress updates when not in a downloading state
This is mostly just a sanity/debounce check.
This commit is contained in:
parent
17a0b19ee7
commit
0a889fafc4
@ -45,6 +45,9 @@ namespace osu.Game.Online.Rooms
|
||||
|
||||
Progress.BindValueChanged(_ =>
|
||||
{
|
||||
if (State.Value != DownloadState.Downloading)
|
||||
return;
|
||||
|
||||
// incoming progress changes are going to be at a very high rate.
|
||||
// we don't want to flood the network with this, so rate limit how often we send progress updates.
|
||||
if (progressUpdate?.Completed != false)
|
||||
|
Loading…
Reference in New Issue
Block a user