mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-26 08:18:27 +00:00
Ensure clock adjustments does not stop remote config refresh.
This commit is contained in:
parent
91be826c7d
commit
4e25e8aaa2
@ -143,7 +143,7 @@ public final class FeatureFlags {
|
|||||||
public static synchronized void refreshIfNecessary() {
|
public static synchronized void refreshIfNecessary() {
|
||||||
long timeSinceLastFetch = System.currentTimeMillis() - SignalStore.remoteConfigValues().getLastFetchTime();
|
long timeSinceLastFetch = System.currentTimeMillis() - SignalStore.remoteConfigValues().getLastFetchTime();
|
||||||
|
|
||||||
if (timeSinceLastFetch > FETCH_INTERVAL) {
|
if (timeSinceLastFetch < 0 || timeSinceLastFetch > FETCH_INTERVAL) {
|
||||||
Log.i(TAG, "Scheduling remote config refresh.");
|
Log.i(TAG, "Scheduling remote config refresh.");
|
||||||
ApplicationDependencies.getJobManager().add(new RemoteConfigRefreshJob());
|
ApplicationDependencies.getJobManager().add(new RemoteConfigRefreshJob());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user