We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c929e66 commit c3c6b60Copy full SHA for c3c6b60
1 file changed
android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java
@@ -3124,7 +3124,9 @@ public boolean removeSession(Long sessionId) {
3124
int location = sessionIds.indexOf(sessionId);
3125
if (location >= 0) {
3126
Long removedSessionId = sessionIds.remove(location);
3127
- registeredTransports.remove(sessionId.intValue());
+ synchronized (TRANSPORT_LOCK) {
3128
+ registeredTransports.remove(sessionId.intValue());
3129
+ }
3130
return removedSessionId != null;
3131
} else {
3132
return false;
0 commit comments