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

Repair client close() (it overrides ModbusProtocol so intern= is needed, even though ugly). #2080

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

janiversen
Copy link
Collaborator

@janiversen janiversen commented Mar 5, 2024

The clients inherit directly from ModbusProtocol, which means the API close() overrides the internal (transport) close(), giving problems.

the intern= was only meant for internal usage, but is added to the client close() in order to have a disconnect work.

This is UGLY and should not be so, but it is a fast fix, a proper solution will come later.

@janiversen janiversen merged commit 16b63b1 into dev Mar 5, 2024
1 check passed
@janiversen janiversen deleted the transport_close branch March 5, 2024 08:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant