mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
[ASDisplayNode] Put the thread affinity assertion back
This commit is contained in:
parent
0002d333f0
commit
42aa52b407
@ -1518,6 +1518,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
|||||||
// NOTE: You must not called this method while holding the receiver's property lock. This may cause deadlocks.
|
// NOTE: You must not called this method while holding the receiver's property lock. This may cause deadlocks.
|
||||||
- (void)removeFromSupernode
|
- (void)removeFromSupernode
|
||||||
{
|
{
|
||||||
|
ASDisplayNodeAssertThreadAffinity(self);
|
||||||
_propertyLock.lock();
|
_propertyLock.lock();
|
||||||
__weak ASDisplayNode *supernode = _supernode;
|
__weak ASDisplayNode *supernode = _supernode;
|
||||||
__weak UIView *view = _view;
|
__weak UIView *view = _view;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user