Merge pull request #7332 from peppy/disable-discord-rpc-reconnections

Disable automatic retry of failed discord RPC connections
This commit is contained in:
Dan Balasescu 2019-12-23 20:06:42 +09:00 committed by GitHub
commit 3dcfee9294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 =>