Skip to content

Commit

Permalink
fix: make sure to re-schedule the backup also in case of backup failu…
Browse files Browse the repository at this point in the history
…re, issue #10
  • Loading branch information
tglman committed May 9, 2023
1 parent dbe5fd8 commit 0231ff7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public void changeConfig(final OBackupConfig config, final ODocument doc) {
@Override
public Boolean onEvent(final ODocument cfg, final OBackupLog log) {
final boolean canContinue = invokeListener(cfg, log);
if (OBackupLogType.BACKUP_FINISHED.equals(log.getType())) {
if (OBackupLogType.BACKUP_FINISHED.equals(log.getType())
|| OBackupLogType.BACKUP_ERROR.equals(log.getType())) {
if (canContinue) {
schedule();
}
Expand Down

0 comments on commit 0231ff7

Please sign in to comment.