You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add UAI request to clean method in LCM
This makes sure to send an UAI request when the LCM is shutting down to clear it from the head unit. Also removed redundent code to cose services and ignore the UAI response because there’s nothing the library can do at that point anyways.
* Add missing initilize to JavaSE LCM
* Fix incorrect start call when should stop in SdlManager
* Add states to LCM
* Prevent duplicate calls to SdlManager.dispose
* Fix formatting issues for shutdown fix#1796
Co-authored-by: Julian Kast <Julian.kast@livio.io>
Co-authored-by: Julian Kast <Julian.kast@livio.io>
if (!SdlDisconnectedReason.LEGACY_BLUETOOTH_MODE_ENABLED.equals(disconnectedReason) && !SdlDisconnectedReason.PRIMARY_TRANSPORT_CYCLE_REQUEST.equals(disconnectedReason)) {
95
96
//We don't want to alert higher if we are just cycling for legacy bluetooth
lifecycleListener.onClosed((LifecycleManager) this, info, e, reason);
350
364
}
@@ -401,10 +415,7 @@ public void onReceived(RPCMessage message) {
401
415
}
402
416
if (minimumRPCVersion != null && minimumRPCVersion.isNewerThan(rpcSpecVersion) == 1) {
403
417
DebugTool.logWarning(TAG, String.format("Disconnecting from head unit, the configured minimum RPC version %s is greater than the supported RPC version %s", minimumRPCVersion, rpcSpecVersion));
if (minimumProtocolVersion != null && minimumProtocolVersion.isNewerThan(version) == 1) {
969
980
DebugTool.logWarning(TAG, String.format("Disconnecting from head unit, the configured minimum protocol version %s is greater than the supported protocol version %s", minimumProtocolVersion, getProtocolVersion()));
970
-
synchronized (SESSION_LOCK) {
971
-
if (session != null) {
972
-
session.endService(SessionType.RPC);
973
-
}
974
-
}
975
-
clean();
981
+
clean(false);
976
982
onClose("Protocol version not supported: " + version, null, SdlDisconnectedReason.MINIMUM_PROTOCOL_VERSION_HIGHER_THAN_SUPPORTED);
977
983
return;
978
984
}
@@ -989,14 +995,10 @@ public void onSessionStarted(int sessionID, Version version, SystemInfo systemIn
0 commit comments