mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:02:57 +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(_ =>
|
Progress.BindValueChanged(_ =>
|
||||||
{
|
{
|
||||||
|
if (State.Value != DownloadState.Downloading)
|
||||||
|
return;
|
||||||
|
|
||||||
// incoming progress changes are going to be at a very high rate.
|
// 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.
|
// we don't want to flood the network with this, so rate limit how often we send progress updates.
|
||||||
if (progressUpdate?.Completed != false)
|
if (progressUpdate?.Completed != false)
|
||||||
|
Loading…
Reference in New Issue
Block a user