From 7085eaf726e4ffe593b0feea08c5ea611e7024d4 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 4 Apr 2020 18:09:33 -0400 Subject: [PATCH] Hang detector is an iOS-only thing. --- platform-darwin/Source/Mac/MPMacAppDelegate.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/platform-darwin/Source/Mac/MPMacAppDelegate.m b/platform-darwin/Source/Mac/MPMacAppDelegate.m index 32888c10..845a025c 100644 --- a/platform-darwin/Source/Mac/MPMacAppDelegate.m +++ b/platform-darwin/Source/Mac/MPMacAppDelegate.m @@ -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 );