Fix crashing when changing user status before rich presence is… (#7498)

Fix crashing when changing user status before rich presence is initialised
This commit is contained in:
Dean Herbert
2020-01-12 02:37:15 +08:00
committed by GitHub

View File

@ -75,6 +75,9 @@ namespace osu.Desktop
private void updateStatus()
{
if (!client.IsInitialized)
return;
if (status.Value is UserStatusOffline)
{
client.ClearPresence();