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
iAP transport disconnect cleanup #1248
iAP transport disconnect cleanup #1248
Conversation
* Separated out control session logic in SDLIAPTransport into the SDLIAPControlSession class * Added test cases for the SDLIAPControlSession class
Fixed switching transports between USB and BT not working if a control session was opened before the data session.
@NicoleYarroch This has some merge conflicts |
* fixed test cases
* Fixed test cases
Added more SDL logs for debugging start session timeouts
|
||
__weak typeof(self) weakSelf = self; | ||
void (^elapsedBlock)(void) = ^{ | ||
__strong typeof(weakSelf) strongSelf = weakSelf; |
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.
The protocolIndexTimer
should call a selector, not a block. The contents of the block should be moved to a selector, and the index timer updated to call the selector.
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.
Do you know why the SDLTimer
class exists? There is no documentation for that class?
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.
It was originally created to make creating and managing an NSTimer's lifecycle easier. It may not be necessary anymore.
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.
I think changing/removing the SDLTimer
should be a separate PR as the library has had issues with the timer crashing the app in the past. Any changes would need to be extensively smoked tested.
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.
That's very true
Refactored the stream errored on write in data session class
Fixed SDL log spelling Co-Authored-By: Joel Fischer <joeljfischer@gmail.com>
Refactored the create session methods in iAPTransport class
…' of https://github.com/smartdevicelink/sdl_ios into bugfix/issue_1239_iAPTransport_class_disconnect_cleanup # Conflicts: # SmartDeviceLink/SDLIAPTransport.m
Fixes #1239, #1261, #1263, #1268
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Unit Tests
Smoke Testing
Summary
Changelog
Breaking Changes
Bug Fixes
Tasks Remaining:
CLA