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
commit d73491daa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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