Skip to content

Commit

Permalink
Use weakSelf
Browse files Browse the repository at this point in the history
  • Loading branch information
maicki committed Nov 8, 2018
1 parent 415e762 commit 6ae7fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASRunLoopQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ - (instancetype)init
// __unsafe_unretained allows us to avoid flagging the memory cycle detector.
__unsafe_unretained __typeof__(self) weakSelf = self;
void (^handlerBlock) (CFRunLoopObserverRef observer, CFRunLoopActivity activity) = ^(CFRunLoopObserverRef observer, CFRunLoopActivity activity) {
while (_internalQueue.count > 0) {
while (weakSelf->_internalQueue.count > 0) {
[weakSelf processQueue];
}
};
Expand Down

0 comments on commit 6ae7fcb

Please sign in to comment.