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:
parent
960b6528ca
commit
6bf436cd62
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user