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

Avoid unwanted reconnects #1154

Merged
merged 2 commits into from
Oct 30, 2022
Merged

Avoid unwanted reconnects #1154

merged 2 commits into from
Oct 30, 2022

Conversation

wlcrs
Copy link
Contributor

@wlcrs wlcrs commented Oct 30, 2022

Fixes a possible race condition resulting in an unwanted reconnect due to protocol_lost_connection that would do a reconnect if params.host is still filled in right after doing the disconnect of the protocol-class.

The order of these statements is already ok in udp.py.

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@janiversen
Copy link
Collaborator

Please solve the flake8 and black problem.

@janiversen
Copy link
Collaborator

Solved black for you.

@wlcrs
Copy link
Contributor Author

wlcrs commented Oct 30, 2022

I guess this solved the flake8 issues too? I don't see any of them when I check locally.

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@janiversen janiversen merged commit 5b6160e into pymodbus-dev:dev Oct 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
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.

2 participants