mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Prevent potential threading issues
This commit is contained in:
parent
f851716a47
commit
808d6e0943
@ -97,11 +97,13 @@ namespace osu.Desktop
|
||||
private void onReady(object _, ReadyMessage __)
|
||||
{
|
||||
Logger.Log("Discord RPC Client ready.", LoggingTarget.Network, LogLevel.Debug);
|
||||
updateStatus();
|
||||
Schedule(updateStatus);
|
||||
}
|
||||
|
||||
private void updateStatus()
|
||||
{
|
||||
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||
|
||||
if (!client.IsInitialized)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user