Skip to content

Conversation

@keichan34
Copy link

I was getting some errors on -(void)dealloc, on this line:

[self removeObserver:self forKeyPath:@"socketState"];

Moving KVO registration into -(id)init will make sure that KVO is always registered.

kolinkrewinkel added a commit that referenced this pull request Jan 18, 2014
Moves KVO registration into `-(id)init`
@kolinkrewinkel kolinkrewinkel merged commit 6a884ce into joeldev:master Jan 18, 2014
@keichan34 keichan34 deleted the fix-kvo-crash-on-dealloc branch January 18, 2014 01:54
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.

2 participants