parent
0e4b9a4eb8
commit
e4faabeca3
|
@ -151,7 +151,7 @@ public class FetchActivityOperation extends AbstractMiBand2Operation {
|
||||||
private void handleActivityFetchFinish() {
|
private void handleActivityFetchFinish() {
|
||||||
LOG.info("Fetching activity data has finished round " + fetchCount);
|
LOG.info("Fetching activity data has finished round " + fetchCount);
|
||||||
GregorianCalendar lastSyncTimestamp = saveSamples();
|
GregorianCalendar lastSyncTimestamp = saveSamples();
|
||||||
if (needsAnotherFetch(lastSyncTimestamp)) {
|
if (lastSyncTimestamp != null && needsAnotherFetch(lastSyncTimestamp)) {
|
||||||
try {
|
try {
|
||||||
startFetching();
|
startFetching();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue