Skip to content

Commit

Permalink
Ensure clock adjustments does not stop remote config refresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal committed Sep 29, 2020
1 parent 91be826 commit 4e25e8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static synchronized void init() {
public static synchronized void refreshIfNecessary() {
long timeSinceLastFetch = System.currentTimeMillis() - SignalStore.remoteConfigValues().getLastFetchTime();

if (timeSinceLastFetch > FETCH_INTERVAL) {
if (timeSinceLastFetch < 0 || timeSinceLastFetch > FETCH_INTERVAL) {
Log.i(TAG, "Scheduling remote config refresh.");
ApplicationDependencies.getJobManager().add(new RemoteConfigRefreshJob());
} else {
Expand Down

0 comments on commit 4e25e8a

Please sign in to comment.