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 while closing the stream in IPCClient#close #14

Open
iHDeveloper opened this issue Nov 25, 2018 · 4 comments
Open

Error while closing the stream in IPCClient#close #14

iHDeveloper opened this issue Nov 25, 2018 · 4 comments
Labels

Comments

@iHDeveloper
Copy link

iHDeveloper commented Nov 25, 2018

Hello @jagrosh

I'm receiving this error while calling the function IPCClient#close which it should close everything safety but it appears an exception that I can't handle it by try and catch because it's in a different thread. So, I hope there's a solution for this error.

21:25:26.238 [Thread-11] ERROR com.jagrosh.discordipc.IPCClient - Reading thread encountered an IOException
java.io.IOException: Stream Closed
    at java.io.RandomAccessFile.length(Native Method)
    at com.jagrosh.discordipc.entities.pipe.WindowsPipe.read(WindowsPipe.java:56)
    at com.jagrosh.discordipc.IPCClient.lambda$startReading$0(IPCClient.java:350)
    at java.lang.Thread.run(Thread.java:748)
@jagrosh
Copy link
Owner

jagrosh commented Nov 26, 2018

Marking this as a bug.

For now, since it's in a separate thread, then you can just ignore it (and if you don't want to see it at all, use your logging dependency to hide errors from IPCClient).

@jagrosh jagrosh added the bug label Nov 26, 2018
@iHDeveloper
Copy link
Author

Well, Could we have a way to disable the error from the logger like setLogLevel. It will be useful to just let the IPCClient log whatever we want for having a useful log. 😄

@jagrosh
Copy link
Owner

jagrosh commented Nov 26, 2018

IPCClient doesn't impose any particular logging dependency on you, it utilizes SLF4J, so you already can set the logging level to whatever you wish using your logging dependency

@iHDeveloper
Copy link
Author

Thanks, @jagrosh for helping me. I appreciate it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants