Commit 32dad387 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 38ea291b
......@@ -120,7 +120,9 @@ function Do_TerminateInstance()
if ($retval == 0) {
SPITAJAX_RESPONSE("");
$webtask->Delete();
if ($webtask) {
$webtask->Delete();
}
return;
}
if ($webtask && $webtask->exited()) {
......
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