Skip to content

Commit c3c6b60

Browse files
committed
Add additional missing transport synch in RS
1 parent c929e66 commit c3c6b60

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,9 @@ public boolean removeSession(Long sessionId) {
31243124
int location = sessionIds.indexOf(sessionId);
31253125
if (location >= 0) {
31263126
Long removedSessionId = sessionIds.remove(location);
3127-
registeredTransports.remove(sessionId.intValue());
3127+
synchronized (TRANSPORT_LOCK) {
3128+
registeredTransports.remove(sessionId.intValue());
3129+
}
31283130
return removedSessionId != null;
31293131
} else {
31303132
return false;

0 commit comments

Comments
 (0)