added 10s retry to infoscreen on connection failure
This commit is contained in:
@@ -11,6 +11,8 @@ app.controller('infoscreen_main', function($scope,$http,$timeout){
|
||||
$http.get('/infoscreen/rotation/'+$scope.rotation).then(function(response){
|
||||
templates = response.data.instances;
|
||||
$scope.next();
|
||||
},function(response){
|
||||
$timeout(get_rotation, 10000);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user