Navigation Menu

Skip to content

Commit

Permalink
[msyncd] Fix compilation when USE_KEEPALIVE is not given
Browse files Browse the repository at this point in the history
The changes introduced in f7561ea
cause the build to fail is USE_KEEPALIVE is not defined.
  • Loading branch information
mardy committed May 23, 2021
1 parent bb85bcf commit c7c7f23
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 c7c7f23

Please sign in to comment.