Skip to content
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

[FIX] Handle also the connection error that are not malformed so not stuck on SendingState. #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kostassite
Copy link

@kostassite kostassite commented Dec 9, 2016

Need to handle all errors and return to the delegate that it has failed so that KMASender is changed back to ReadyState. For example, this is handled correctly: (void)connection:(NSURLConnection )connection didReceiveResponse:(NSURLResponse )response

Currently, the error is not handled when the device is offline because the error is of type -1009(timeout), so never tries to send the reports even when the device is back online because the KMASender is in SendingState.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant