added 10s retry to infoscreen on connection failure

This commit is contained in:
Sika Production
2016-09-19 19:08:10 +03:00
parent 23679ac06f
commit 04ac67d27e
@@ -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);
});
}