route API: in case of error, delay next request by 15 seconds

This commit is contained in:
Matthias Wirth
2025-10-22 12:12:07 +00:00
parent fbdad59500
commit 9250036cd6

View File

@@ -3032,7 +3032,8 @@ function routeDoLookup(currentTime) {
}) })
.fail((jqxhr, status, error) => { .fail((jqxhr, status, error) => {
g.route_check_in_flight = false; g.route_check_in_flight = false;
console.log('API server call failed with', status); g.route_cache_timer = Date.now()/1000 + 15;
console.log('route API request error, delaying next request by 15 seconds.');
}); });
} }