mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASImageNode] Correctly unlock _imageLock
This commit is contained in:
@@ -296,7 +296,7 @@
|
||||
void (^displayCompletionBlock)(BOOL canceled) = _displayCompletionBlock;
|
||||
UIImage *image = _image;
|
||||
|
||||
ASDN::MutexLocker u(_imageLock);
|
||||
ASDN::MutexUnlocker u(_imageLock);
|
||||
|
||||
// If we've got a block to perform after displaying, do it.
|
||||
if (image && displayCompletionBlock) {
|
||||
@@ -305,7 +305,7 @@
|
||||
|
||||
ASDN::MutexLocker l(_imageLock);
|
||||
_displayCompletionBlock = nil;
|
||||
ASDN::MutexLocker u(_imageLock);
|
||||
ASDN::MutexUnlocker u(_imageLock);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user