mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Cleanup MTContext
This commit is contained in:
parent
78b0c5f509
commit
ca796c6819
@ -350,6 +350,8 @@ static void copyKeychainDictionaryKey(NSString * _Nonnull group, NSString * _Non
|
||||
|
||||
id<MTDisposable> cleanupSessionInfoDisposables = _cleanupSessionInfoDisposables;
|
||||
|
||||
NSDictionary *transportSchemeDisposableByDatacenterId = _transportSchemeDisposableByDatacenterId;
|
||||
|
||||
[[MTContext contextQueue] dispatchOnQueue:^
|
||||
{
|
||||
for (NSNumber *nDatacenterId in discoverDatacenterAddressActions)
|
||||
@ -383,6 +385,12 @@ static void copyKeychainDictionaryKey(NSString * _Nonnull group, NSString * _Non
|
||||
}
|
||||
|
||||
[cleanupSessionInfoDisposables dispose];
|
||||
|
||||
for (NSNumber *nDatacenterId in transportSchemeDisposableByDatacenterId)
|
||||
{
|
||||
id<MTDisposable> disposable = transportSchemeDisposableByDatacenterId[nDatacenterId];
|
||||
[disposable dispose];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user