1
0
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:
Dean Herbert 2021-03-26 14:04:39 +09:00
parent 17a0b19ee7
commit 0a889fafc4

View File

@ -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)