Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error spam when discord is not available #142

Closed
ttermeer-reboundcg opened this issue Apr 27, 2021 · 1 comment
Closed

Error spam when discord is not available #142

ttermeer-reboundcg opened this issue Apr 27, 2021 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ttermeer-reboundcg
Copy link

When Discord is not running, RpcConnection is actively trying to connect repeatedly causing errors to be reported.

On .Net :

Exception thrown: 'System.TimeoutException' in System.Core.dll
Failed connection to discord-ipc-0. The operation has timed out.
Tried to close a already closed pipe.
Exception thrown: 'System.TimeoutException' in System.Core.dll
Failed connection to discord-ipc-1. The operation has timed out.
Tried to close a already closed pipe.
Exception thrown: 'System.TimeoutException' in System.Core.dll
Failed connection to discord-ipc-2. The operation has timed out.

On Unity :

Failed: Lachee.IO.Exceptions.NamedPipeOpenException, An exception has occured while trying to open the pipe. Error Code: 2
Failed: Lachee.IO.Exceptions.NamedPipeOpenException, An exception has occured while trying to open the pipe. Error Code: 2
[...]
Failed: Lachee.IO.Exceptions.NamedPipeOpenException, An exception has occured while trying to open the pipe. Error Code: 2
Failed to connect for some reason.

Either the error should be only reported once or allow us to specify a max retry count to stop the RpcConnection from connecting endlessly

@ttermeer-reboundcg ttermeer-reboundcg added the bug Something isn't working label Apr 27, 2021
@Lachee
Copy link
Owner

Lachee commented Apr 27, 2021

It will attempt to connect on any of the 10 pipes Discord maybe available on.
If you wish to handle this logging, you can do so by writting a custom logger.

It is an exception it caught, so it needs to be logged as such
https://github.com/Lachee/discord-rpc-csharp/blob/master/DiscordRPC/IO/ManagedNamedPipeClient.cs#L159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants