1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 04:12:55 +08:00

Only null the realm write task if it actually completed

This commit is contained in:
Dean Herbert 2022-03-09 13:52:58 +09:00
parent 960b6528ca
commit 6bf436cd62

View File

@ -129,8 +129,11 @@ namespace osu.Game.Screens.Play.PlayerSettings
if (realmWriteTask == null) if (realmWriteTask == null)
Current.Value = val; Current.Value = val;
if (realmWriteTask?.IsCompleted == true)
{
// we can also mark any in-flight write that is managed locally as "seen" and start handling any incoming changes again. // we can also mark any in-flight write that is managed locally as "seen" and start handling any incoming changes again.
realmWriteTask = null; realmWriteTask = null;
}
}); });
Current.BindValueChanged(currentChanged); Current.BindValueChanged(currentChanged);