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)
|
function processPotaParks(buffer)
|
||||||
|
{
|
||||||
|
if (g_potaEnabled == 1)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -146,6 +148,7 @@ function processPotaParks(buffer)
|
||||||
console.log(e.message);
|
console.log(e.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getPotaParks()
|
function getPotaParks()
|
||||||
{
|
{
|
||||||
|
@ -183,6 +186,8 @@ function uniqueArrayFromArray(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
function processPotaSpots(buffer)
|
function processPotaSpots(buffer)
|
||||||
|
{
|
||||||
|
if (g_potaEnabled == 1)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -222,6 +227,7 @@ function processPotaSpots(buffer)
|
||||||
// can't write, somethings broke
|
// can't write, somethings broke
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getPotaSpots()
|
function getPotaSpots()
|
||||||
{
|
{
|
||||||
|
@ -246,6 +252,8 @@ function getPotaSpots()
|
||||||
}
|
}
|
||||||
|
|
||||||
function processPotaSchedule(buffer)
|
function processPotaSchedule(buffer)
|
||||||
|
{
|
||||||
|
if (g_potaEnabled == 1)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -295,6 +303,7 @@ function processPotaSchedule(buffer)
|
||||||
// can't write, somethings broke
|
// can't write, somethings broke
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getPotaSchedule()
|
function getPotaSchedule()
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue