From b124cc20a0caedbc1d2ca325d3d0ef911e10f5ab Mon Sep 17 00:00:00 2001 From: Garrett Moon Date: Wed, 29 Aug 2018 16:27:35 -0700 Subject: [PATCH] Add subnode should not be called with the lock held. --- Source/ASImageNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ASImageNode.mm b/Source/ASImageNode.mm index cc2905d2..b8d249ae 100644 --- a/Source/ASImageNode.mm +++ b/Source/ASImageNode.mm @@ -251,7 +251,7 @@ typedef void (^ASImageNodeDrawParametersBlock)(ASWeakMapEntry *entry); // 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];