Commit 73119ea3 authored by Ronan's avatar Ronan

fix(PlatformHelpers): initialize correctly mNetworkReachable +...

fix(PlatformHelpers): initialize correctly mNetworkReachable + DefaultMonitorTimeout should be constexpr
parent 2abbaa57
Pipeline #586 canceled with stage
in 0 seconds
......@@ -78,10 +78,14 @@ void GenericPlatformHelpers::onLinphoneCoreReady (bool monitoringEnabled) {
if (!monitoringEnabled) return;
if (!mMonitorTimer) {
mMonitorTimer = mCore->sal->createTimer(monitorTimerExpired, this,
mDefaultMonitorTimeout * 1000, "monitor network timeout");
mMonitorTimer = mCore->sal->createTimer(
monitorTimerExpired,
this,
DefaultMonitorTimeout * 1000,
"monitor network timeout"
);
} else {
belle_sip_source_set_timeout(mMonitorTimer, mDefaultMonitorTimeout * 1000);
belle_sip_source_set_timeout(mMonitorTimer, DefaultMonitorTimeout * 1000);
}
}
......
......@@ -92,10 +92,10 @@ private:
static int monitorTimerExpired (void *data, unsigned int revents);
private:
static const int mDefaultMonitorTimeout = 5;
static constexpr int DefaultMonitorTimeout = 5;
belle_sip_source_t *mMonitorTimer;
bool mNetworkReachable;
bool mNetworkReachable = false;
};
PlatformHelpers *createAndroidPlatformHelpers (LinphoneCore *lc, void *systemContext);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment