From d2bc8722c9ac8a183dfa94a4aeedfd180e7a20f2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 21 Oct 2016 13:31:02 -0400 Subject: [PATCH] Fix container service status check It appears Chrome changed the status code returned when it cannot connect --- static/js/services/container-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/services/container-service.js b/static/js/services/container-service.js index a62bb5835..9c3fc447e 100644 --- a/static/js/services/container-service.js +++ b/static/js/services/container-service.js @@ -19,7 +19,7 @@ function(ApiService, $timeout, Restangular) { containerService.checkStatus = function(callback, opt_config) { var errorHandler = function(resp) { - if (resp.status == 404 || resp.status == 502) { + if (resp.status == 404 || resp.status == 502 || resp.status == -1) { // Container has not yet come back up, so we schedule another check. containerService.scheduleStatusCheck(callback, opt_config); return;