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

Properly cancel ModbusTcpSlaveNetwork ListenAsync #64

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

eifinger
Copy link
Contributor

Fixes #52

The correct cancellation of the ListenAsync method is based on https://stackoverflow.com/questions/19220957/tcplistener-how-to-stop-listening-while-awaiting-accepttcpclientasync.

When cancelled the method will now throw a OperationCanceledException.

@eifinger
Copy link
Contributor Author

eifinger commented Jul 7, 2020

@rquackenbush anything I can do to merge this PR?

@rquackenbush rquackenbush merged commit 04a54c8 into NModbus:develop Jul 14, 2020
@rquackenbush
Copy link
Contributor

Merged and built - available as of version 3.0.62 of the nuget package.

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

Successfully merging this pull request may close these issues.

ModbusTcpSlaveNetwork.ListenAsync will not cancel
2 participants