Commit e332b9a5 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix undefined variable.

parent ff395072
......@@ -828,8 +828,10 @@ sub DoSnapshot()
$webtask->output($errmsg);
}
# For display in the imaging modal.
$swebtask->Exited($errcode);
$swebtask->output($errmsg);
if (defined($errmsg) && defined($swebtask)) {
$swebtask->Exited($errcode);
$swebtask->output($errmsg);
}
$slice->UnLock()
if ($needunlock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment