Commit 034fdec8 authored by Leigh B Stoller's avatar Leigh B Stoller

Handle connection timeouts better in the getstatus loop by adding

an ajax failure handler.
parent 7c1baa40
......@@ -343,7 +343,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
function StartStatusWatch()
{
GetStatus();
statusID = setInterval(GetStatus, 5000);
statusID = setInterval(GetStatus, 4000);
}
function GetStatus()
......@@ -364,6 +364,10 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
"status",
"GetInstanceStatus",
{"uuid" : uuid});
xmlthing.fail(function(jqXHR, textStatus) {
console.info("GetStatus failed: " + textStatus);
statusBusy = 0;
});
xmlthing.done(callback);
}
......
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