Skip to content

Commit

Permalink
Add subnode should not be called with the lock held. (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmoon committed Aug 30, 2018
1 parent dcda33b commit cae3762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASImageNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ - (void)_locked_setImage:(UIImage *)image

// For debugging purposes we don't care about locking for now
if ([ASImageNode shouldShowImageScalingOverlay] && _debugLabelNode == nil) {
ASPerformBlockOnMainThread(^{
dispatch_async(dispatch_get_main_queue(), ^{
_debugLabelNode = [[ASTextNode alloc] init];
_debugLabelNode.layerBacked = YES;
[self addSubnode:_debugLabelNode];
Expand Down

0 comments on commit cae3762

Please sign in to comment.