mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Initialise Authenticator before all other modules
This commit is contained in:
@@ -158,6 +158,15 @@
|
||||
BITHockeyLog(@"INFO: Starting HockeyManager");
|
||||
_startManagerIsInvoked = YES;
|
||||
|
||||
// start Authenticator
|
||||
if ( YES /* ![self isAuthenticatorDisabled] */) {
|
||||
BITHockeyLog(@"INFO: Start Authenticator");
|
||||
if (_serverURL) {
|
||||
[_authenticator setServerURL:_serverURL];
|
||||
}
|
||||
[_authenticator startManager];
|
||||
}
|
||||
|
||||
// start CrashManager
|
||||
if (![self isCrashManagerDisabled]) {
|
||||
BITHockeyLog(@"INFO: Start CrashManager");
|
||||
@@ -180,15 +189,6 @@
|
||||
[_updateManager performSelector:@selector(startManager) withObject:nil afterDelay:0.5f];
|
||||
}
|
||||
|
||||
// start Authenticator
|
||||
if ( YES /* ![self isAuthenticatorDisabled] */) {
|
||||
BITHockeyLog(@"INFO: Start Authenticator");
|
||||
if (_serverURL) {
|
||||
[_authenticator setServerURL:_serverURL];
|
||||
}
|
||||
[_authenticator startManager];
|
||||
}
|
||||
|
||||
// start StoreUpdateManager
|
||||
if ([self isStoreUpdateManagerEnabled]) {
|
||||
BITHockeyLog(@"INFO: Start StoreUpdateManager");
|
||||
|
||||
Reference in New Issue
Block a user