Skip to content

Commit

Permalink
document a crash we're seeing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Oct 18, 2014
1 parent fd6b5de commit ea70424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConnectionKit/CK2FileOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ - (void)tryToMessageDelegateSelector:(SEL)selector usingBlock:(void (^)(id <CK2F
NSAssert(manager, @"%@ disconnected from its manager too early", self.class);
id <CK2FileManagerDelegate> delegate = manager.delegate;

if (!selector || [delegate respondsToSelector:selector])
if (!selector || [delegate respondsToSelector:selector]) // will crash if delegate is a zombie, as in https://rink.hockeyapp.net/manage/apps/101581/crash_reasons/21102964/multiple
{
[manager.delegateQueue addOperationWithBlock:^{
block(manager.delegate); // I have a suspicion delegate is occasionally a zombie otherwise https://karelia.fogbugz.com/f/cases/236528
Expand Down

0 comments on commit ea70424

Please sign in to comment.