Skip to content

Add lock to websocket Connections method#344

Merged
lorenzodonini merged 2 commits intomasterfrom
ws/connections-fix
Feb 2, 2025
Merged

Add lock to websocket Connections method#344
lorenzodonini merged 2 commits intomasterfrom
ws/connections-fix

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 and others added 2 commits February 2, 2025 16:12
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
@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