set canUseSDk flag to false before pause transmission
@@ -269,9 +269,18 @@ static BOOL _initialized = false;
+(void)pauseTransmission
{
- PerformActionWithCppExceptionsCatch(^(void) {
+ try
+ {
LogManager::PauseTransmission();
- });
+ }
+ catch (const std::exception &e)
+ {
+ if ([ODWLogConfiguration surfaceCppExceptions])
+ {
+ [ODWLogger raiseException: e.what()];
+ }
+ [ODWLogger traceException: e.what()];
+ }
}
+(void)resumeTransmission
@@ -312,8 +321,8 @@ static BOOL _initialized = false;
});
}
+(void)applicationWillTerminate {
- [ODWLogManager pauseTransmission];
canUseSDK = false;
+ [ODWLogManager pauseTransmission];
[ODWLogManager flushAndTeardown];
}
@end
