kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Ignore pota downloads if we became disabled while requesting data
rodzic
aa25f41ec3
commit
d1ba87803f
|
@ -119,6 +119,8 @@ function makeParkFeature(park)
|
|||
|
||||
function processPotaParks(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
let newParks = JSON.parse(buffer);
|
||||
|
@ -145,6 +147,7 @@ function processPotaParks(buffer)
|
|||
console.log("Failed to load parks!");
|
||||
console.log(e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaParks()
|
||||
|
@ -184,6 +187,8 @@ function uniqueArrayFromArray(input)
|
|||
|
||||
function processPotaSpots(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
let spots = JSON.parse(buffer);
|
||||
|
@ -221,6 +226,7 @@ function processPotaSpots(buffer)
|
|||
{
|
||||
// can't write, somethings broke
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaSpots()
|
||||
|
@ -247,6 +253,8 @@ function getPotaSpots()
|
|||
|
||||
function processPotaSchedule(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
let schedules = JSON.parse(buffer);
|
||||
|
@ -294,6 +302,7 @@ function processPotaSchedule(buffer)
|
|||
{
|
||||
// can't write, somethings broke
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaSchedule()
|
||||
|
|
Ładowanie…
Reference in New Issue