-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Issue 749 app crashes when usb cord is pulled #752
WIP: Issue 749 app crashes when usb cord is pulled #752
Conversation
- Added protection statements to prevent calls to delegate if nil Signed-off-by: NicoleYarroch <nicole@livio.io>
- fixed crash caused by strong reference cycle Signed-off-by: NicoleYarroch <nicole@livio.io>
Signed-off-by: NicoleYarroch <nicole@livio.io>
Signed-off-by: NicoleYarroch <nicole@livio.io>
- life cycle state machine was not taking into account that the accessory could be disconnected after the app icon was setup but before the hmi was setup Signed-off-by: NicoleYarroch <nicole@livio.io>
Codecov Report
@@ Coverage Diff @@
## release/5.0.0 #752 +/- ##
===============================================
Coverage ? 54.3%
===============================================
Files ? 318
Lines ? 7316
Branches ? 668
===============================================
Hits ? 3973
Misses ? 3101
Partials ? 242 |
Signed-off-by: NicoleYarroch <nicole@livio.io>
…_pulled Signed-off-by: NicoleYarroch <nicole@livio.io> # Conflicts: # SmartDeviceLink/SDLLifecycleManager.m
Signed-off-by: NicoleYarroch <nicole@livio.io>
@NicoleYarroch The IAPTransport notifications were being unsubscribed correctly. You should not have to do each individually. |
// We are sure to have a HMIStatus, set state to ready | ||
[self.lifecycleStateMachine transitionToState:SDLLifecycleStateReady]; | ||
} | ||
|
||
- (void)didEnterStateReady { | ||
if ([self sdl_didAccessoryDisconnect]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we certain having these everywhere is necessary? We are getting a transport disconnect notification (transportDidDisconnect) if the accessory disconnected.
This was closed due to targeting a deleted branch. If this still needs to exist, re-open against master or develop |
Fixes #749
Fixes #679
This PR is not ready for review.
Risk
This PR makes no API changes.
Testing Plan
None written yet
Summary
SDLIAPTransport
class, causing the app to crash when the USB cord was pulled.Changelog
Tasks Remaining:
CLA