Ignore pota downloads if we became disabled while requesting data

merge-requests/203/head
Tag 2022-09-21 16:00:02 -07:00
rodzic aa25f41ec3
commit d1ba87803f
1 zmienionych plików z 90 dodań i 81 usunięć

Wyświetl plik

@ -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()
{