kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Ignore pota downloads if we became disabled while requesting data
rodzic
aa25f41ec3
commit
d1ba87803f
|
@ -118,6 +118,8 @@ function makeParkFeature(park)
|
|||
}
|
||||
|
||||
function processPotaParks(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -146,6 +148,7 @@ function processPotaParks(buffer)
|
|||
console.log(e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaParks()
|
||||
{
|
||||
|
@ -183,6 +186,8 @@ function uniqueArrayFromArray(input)
|
|||
}
|
||||
|
||||
function processPotaSpots(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -222,6 +227,7 @@ function processPotaSpots(buffer)
|
|||
// can't write, somethings broke
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaSpots()
|
||||
{
|
||||
|
@ -246,6 +252,8 @@ function getPotaSpots()
|
|||
}
|
||||
|
||||
function processPotaSchedule(buffer)
|
||||
{
|
||||
if (g_potaEnabled == 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -295,6 +303,7 @@ function processPotaSchedule(buffer)
|
|||
// can't write, somethings broke
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPotaSchedule()
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue