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