2
0

Hang detector is an iOS-only thing.

This commit is contained in:
Maarten Billemont 2020-04-04 18:09:33 -04:00
parent 878970ff22
commit 7085eaf726

View File

@ -142,14 +142,6 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
countlyConfig.secretSalt = decrypt( countlySalt );
countlyConfig.enableDebug = YES;
[Countly.sharedInstance startWithConfig:countlyConfig];
#if ! DEBUG
[self.hangDetector = [[PearlHangDetector alloc] initWithHangAction:^(NSTimeInterval hangTime) {
MPError( [NSError errorWithDomain:MPErrorDomain code:MPErrorHangCode userInfo:@{
@"time": @(hangTime)
}], @"Timeout waiting for main thread after %fs.", hangTime );
}] start];
#endif
}
@catch (id exception) {
err( @"During Analytics Setup: %@", exception );