5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-02-08 09:57:56 +03:00

refactor cleanup code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-10-11 12:08:14 +02:00
parent 98b556b61c
commit a6117db573

View File

@ -545,10 +545,10 @@ sub init {
update_state($job);
}); #cron and state lock
eval {
sync($param) if !$param->{skip};
};
if(my $err = $@) {
return if $param->{skip};
eval { sync($param) };
if (my $err = $@) {
destroy_job($param);
print $err;
}