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

How do I close the S101Logger on client ConnectionLost event #51

Open
fredrikbergholtz-sr opened this issue Mar 9, 2018 · 0 comments
Open

Comments

@fredrikbergholtz-sr
Copy link

Hi, I am trying to implement a mechanism for trying to re-connect when the connection to an S101Client is lost.

If I do this without a logger it works, but it seems as if the log file that the logger is using isn't closed properly even though I explicitly close the StreamWriter in the event handler for the ConnectionLost event.

When I try to re-connect I get an exception stating that the log file is used by another process.

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

No branches or pull requests

1 participant