Skip to content

Commit 44def2e

Browse files
authored
Merge pull request #209 from dimaa6/208-session-set
Use key when checking if session is in the Map.
2 parents 5c608f8 + 9b1dee5 commit 44def2e

File tree

1 file changed

+1
-1
lines changed
  • ocpp-common/src/main/java/eu/chargetime/ocpp

1 file changed

+1
-1
lines changed

ocpp-common/src/main/java/eu/chargetime/ocpp/Server.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public void handleConnectionOpened() {}
171171
}
172172

173173
private Optional<UUID> getSessionID(ISession session) {
174-
if (!sessions.containsValue(session)) {
174+
if (!sessions.containsKey(session.getSessionId())) {
175175
return Optional.empty();
176176
}
177177

0 commit comments

Comments
 (0)