mirror of
https://github.com/osukey/osukey.git
synced 2025-05-16 02:57:32 +09: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;
|
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);
|
client.OnError += (_, e) => Logger.Log($"An error occurred with Discord RPC Client: {e.Code} {e.Message}", LoggingTarget.Network);
|
||||||
|
|
||||||
(user = provider.LocalUser.GetBoundCopy()).BindValueChanged(u =>
|
(user = provider.LocalUser.GetBoundCopy()).BindValueChanged(u =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user