mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
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:
commit
d73491daa9
@ -75,6 +75,9 @@ namespace osu.Desktop
|
||||
|
||||
private void updateStatus()
|
||||
{
|
||||
if (!client.IsInitialized)
|
||||
return;
|
||||
|
||||
if (status.Value is UserStatusOffline)
|
||||
{
|
||||
client.ClearPresence();
|
||||
|
Loading…
Reference in New Issue
Block a user