Skip to content

Commit 2600817

Browse files
committed
Fix edge case with permissions being revoked
1 parent bbbfb8c commit 2600817

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

base/src/main/java/com/smartdevicelink/protocol/SdlProtocolBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,10 @@ public void onTransportDisconnected(String info, TransportRecord disconnectedTra
12391239
}
12401240
}
12411241

1242-
if ((getTransportForSession(SessionType.RPC) != null && disconnectedTransport.equals(getTransportForSession(SessionType.RPC))) || disconnectedTransport.equals(connectedPrimaryTransport)) {
1242+
if ((getTransportForSession(SessionType.RPC) != null && disconnectedTransport.equals(getTransportForSession(SessionType.RPC)))
1243+
|| disconnectedTransport.equals(connectedPrimaryTransport)
1244+
|| connectedTransports == null
1245+
|| connectedTransports.isEmpty()) {
12431246
//Primary transport has been disconnected. Let's check if we can recover.
12441247
//transportTypes.remove(type);
12451248
boolean primaryTransportAvailable = false;

0 commit comments

Comments
 (0)