diff --git a/view-train.js b/view-train.js index 12dd02a..f5e1d23 100644 --- a/view-train.js +++ b/view-train.js @@ -316,9 +316,11 @@ function refresh() { } return response.json() }).then(function (response) { + if (!response) { + return + } trainData = response onTrainData(response) - }).then(function () { reschedule() }).catch(function (e) { // Check in 1 second if network error