mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Disable background deallocation on iOS 8 and below (#2954)
- The crash mainly occurs on these old iOS versions (~93%) and p6.16.1. There might be a client code issue that causes this crash, but it's hard to tell if it also crashes on newer iOS versions AND p6.17. - Let's disable this feature for now and re-investigate if it resurfaces on p6.19 and iOS 9/10.
This commit is contained in:
committed by
Hannah Troisi
parent
38aac9d019
commit
b3663476e6
@@ -48,6 +48,11 @@ static void runLoopSourceCallback(void *info) {
|
||||
|
||||
- (void)releaseObjectInBackground:(id)object
|
||||
{
|
||||
// Disable background deallocation on iOS 8 and below to avoid crashes related to UIAXDelegateClearer (#2767).
|
||||
if (!AS_AT_LEAST_IOS9) {
|
||||
return;
|
||||
}
|
||||
|
||||
_queueLock.lock();
|
||||
_queue.push_back(object);
|
||||
_queueLock.unlock();
|
||||
|
||||
Reference in New Issue
Block a user