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

SPWebSocket Crash #209

Closed
jleandroperez opened this issue Feb 13, 2014 · 0 comments
Closed

SPWebSocket Crash #209

jleandroperez opened this issue Feb 13, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@jleandroperez
Copy link
Contributor

Scenario:

  1. App disables networking when enters in BG mode (AppDelegate methods).
  2. When the 'Entered Background' notification gets posted, our SPWebSocket instance is already stopped.
  3. SPWebSocket's internal timeout timer hasn't been stopped, which increases the retainCount.
  4. The 'Entered BG' notification invalidates the timer. Instantly, the instance is dealloc'ed.

As a result, the app crashes as soon as the SPWebSocket instance is released.

@jleandroperez jleandroperez added this to the v0.7.0 milestone Feb 13, 2014
@jleandroperez jleandroperez self-assigned this Feb 13, 2014
@jleandroperez jleandroperez modified the milestones: v0.6.4, v0.7.0 Mar 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant