Skip to content

Commit b2b1e59

Browse files
Merge pull request #1766 from smartdevicelink/bugfix/issue_1661
Add Bluetooth adapter available check in RouterService for spp error notification
2 parents 1e729eb + 03880c4 commit b2b1e59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ public void onTransportError(TransportRecord transport, Bundle errorBundle) {
19421942
bluetoothTransport.setStateManually(MultiplexBluetoothTransport.STATE_NONE);
19431943
bluetoothTransport = null;
19441944
}
1945-
if (errorBundle != null && errorBundle.getByte(MultiplexBaseTransport.ERROR_REASON_KEY) == MultiplexBaseTransport.REASON_SPP_ERROR) {
1945+
if (errorBundle != null && errorBundle.getByte(MultiplexBaseTransport.ERROR_REASON_KEY) == MultiplexBaseTransport.REASON_SPP_ERROR && bluetoothAvailable()) {
19461946
notifySppError();
19471947
}
19481948
break;

0 commit comments

Comments
 (0)