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

Don't update rich presence if the rpc client isn't initialized.

This commit is contained in:
Lucas A 2020-01-11 16:03:00 +01:00
parent 9a9c01bc92
commit ec95cbd0af

View File

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