Skip to content

Commit

Permalink
Merge branch 'mer-without-keepalive' into 'master'
Browse files Browse the repository at this point in the history
[msyncd] Fix compilation when USE_KEEPALIVE is not given

See merge request mer-core/buteo-syncfw!67
  • Loading branch information
pvuorela committed May 24, 2021
2 parents bb85bcf + c7c7f23 commit 4553308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msyncd/SyncScheduler.cpp
Expand Up @@ -170,14 +170,14 @@ void SyncScheduler::syncStatusChanged(const QString &aProfileName, int aStatus,
iActiveBackgroundSyncProfiles.remove(aProfileName);
#ifdef USE_KEEPALIVE
iBackgroundActivity->onBackgroundSyncCompleted(aProfileName);
#endif

// and schedule the next background sync if necessary.
SyncProfile *profile = iProfileManager.syncProfile(aProfileName);
if (profile) {
setNextAlarm(profile);
delete profile;
}
#endif
}
}

Expand Down
2 changes: 1 addition & 1 deletion msyncd/SyncScheduler.h
Expand Up @@ -183,11 +183,11 @@ private slots:

private: // data

QSet<QString> iActiveBackgroundSyncProfiles;
#ifdef USE_KEEPALIVE
/// BackgroundSync management object
BackgroundSync *iBackgroundActivity;
ProfileManager iProfileManager;
QSet<QString> iActiveBackgroundSyncProfiles;
#else
/// A list of sync schedule profiles
QMap<QString, int> iSyncScheduleProfiles;
Expand Down

0 comments on commit 4553308

Please sign in to comment.