mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-02-07 05:58:01 +03:00
fix #1587: sync: check if job state is defined
just because the $job hash is populated it's state key doesn't needs to be.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c9e2de9409
commit
9039b8bf87
@ -574,7 +574,7 @@ sub sync {
|
|||||||
$job = get_job($param);
|
$job = get_job($param);
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($job && $job->{state} eq "syncing") {
|
if ($job && defined($job->{state}) && $job->{state} eq "syncing") {
|
||||||
die "Job --source $param->{source} --name $param->{name} is syncing at the moment";
|
die "Job --source $param->{source} --name $param->{name} is syncing at the moment";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user