mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 14:23:14 +08:00
Disable automatic retry of failed discord RPC connections
This commit is contained in:
parent
cc808a9eb1
commit
b9bc1c954e
@ -43,6 +43,10 @@ namespace osu.Desktop
|
||||
};
|
||||
|
||||
client.OnReady += onReady;
|
||||
|
||||
// safety measure for now, until we performance test / improve backoff for failed connections.
|
||||
client.OnConnectionFailed += (_, __) => client.Deinitialize();
|
||||
|
||||
client.OnError += (_, e) => Logger.Log($"An error occurred with Discord RPC Client: {e.Code} {e.Message}", LoggingTarget.Network);
|
||||
|
||||
(user = provider.LocalUser.GetBoundCopy()).BindValueChanged(u =>
|
||||
|
Loading…
Reference in New Issue
Block a user