diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-12-10 23:44:04 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-12-10 23:44:04 +0000 |
commit | aa031c82841b4ea44b58dcfec7bf9fcbc76ee77c (patch) | |
tree | ad0e73cd032dd4cbba65afd250f40c3ad57c54c8 /bin | |
parent | 367f72f8605d8a768779c63f9eeb9c57b8abf332 (diff) |
Fix an unnecessary pass through backup loop when time for next backup arrives.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 60efaa0e..39c62d3b 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -627,6 +627,9 @@ void BackupDaemon::Run2() ? 1 : sleepSeconds); } + // We have now slept, so if automaticBackup is enabled then + // it's time for a backup now. + if(StopRun()) { BOX_INFO("Stopping idle loop due to shutdown request"); @@ -637,12 +640,6 @@ void BackupDaemon::Run2() BOX_INFO("Starting a backup immediately due to " "bbackupctl sync command"); } - else if(currentTime < mNextSyncTime) - { - BOX_TRACE("Sleeping again because next sync time " - "has not arrived"); - continue; - } else if(mDoSyncForcedByPreviousSyncError) { BOX_INFO("Last backup was not successful, next one " |