diff --git a/Source/ASImageNode.mm b/Source/ASImageNode.mm index cc2905d27..b8d249aee 100644 --- a/Source/ASImageNode.mm +++ b/Source/ASImageNode.mm @@ -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];