mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-21 18:13:26 +00:00
Ensure that the uncommon __unloadNode codepath does not unintentionally trigger node removal.
This commit is contained in:
@@ -352,8 +352,9 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
||||
- (void)__unloadNode
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
ASDisplayNodeAssert([self isNodeLoaded], @"Implementation shouldn't call __unloadNode if not loaded: %@", self);
|
||||
ASDN::MutexLocker l(_propertyLock);
|
||||
|
||||
|
||||
if (_flags.layerBacked)
|
||||
_pendingViewState = [_ASPendingState pendingViewStateFromLayer:_layer];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user