[ASDisplayNode] Put the thread affinity assertion back

This commit is contained in:
Adlai Holler 2016-06-17 09:51:09 -07:00
parent 0002d333f0
commit 42aa52b407

View File

@ -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.
- (void)removeFromSupernode
{
ASDisplayNodeAssertThreadAffinity(self);
_propertyLock.lock();
__weak ASDisplayNode *supernode = _supernode;
__weak UIView *view = _view;