Initialise Authenticator before all other modules

This commit is contained in:
Andreas Linde
2013-09-10 18:07:58 +02:00
parent 9456ef97e9
commit 2d3e1c503d

View File

@@ -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");