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

Add lock to websocket Connections method #344

Merged
merged 2 commits into from
Feb 2, 2025
Merged

Conversation

lorenzodonini
Copy link
Owner

Proposed changes

Fixes the new Connections method introduced in #284 by adding a RLock/unlock call to make the function thread-safe.

See https://github.com/lorenzodonini/ocpp-go/pull/284/files#r1921637697

Types of changes

What types of changes does your code introduce?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

@lorenzodonini lorenzodonini merged commit a1eec91 into master Feb 2, 2025
@lorenzodonini lorenzodonini deleted the ws/connections-fix branch February 2, 2025 15:16
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.

1 participant