Skip to content

Commit 6718a30

Browse files
feat: health check disable networking
1 parent bc52a4a commit 6718a30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CountlyHealthTracker.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ - (void)sendHealthCheck {
147147
CLY_LOG_W(@"%s, currently in temporary id mode, omitting", __FUNCTION__);
148148
}
149149

150+
if (!CountlyServerConfig.sharedInstance.networkingEnabled)
151+
{
152+
CLY_LOG_D(@"'sendHealthCheck' is aborted: SDK Networking is disabled from server config!");
153+
return;
154+
}
155+
150156
if (!_healthCheckEnabled || _healthCheckSent) {
151157
CLY_LOG_D(@"%s, health check status, sent: %d, not_enabled: %d", __FUNCTION__, _healthCheckSent, _healthCheckEnabled);
152158
}

0 commit comments

Comments
 (0)