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

Fix: check if connections exist before closing them #54

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

GianOrtiz
Copy link
Contributor

The pull request #53 added a new feature to the CentralSystem to close a connection from a ChargePoint, some ChargePoints with bad implemented code can open more than one connection, where one connection will be the active, where the ChargePoint will send and receive commands, the other connections will be stale and not used for communication.

Unfortunately, we have assumed we would always get a connection to close, this does not seem to be true. This PR checks if the connections exist before closing them.

@leviermonaites
Copy link
Contributor

LGTM

@leviermonaites leviermonaites self-requested a review June 11, 2024 12:15
@GianOrtiz GianOrtiz merged commit 85aea07 into main Jun 11, 2024
2 checks passed
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.

2 participants