mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
Update TimedTasks with config update
- Oops, Missed that.
This commit is contained in:
1 parent
348236be18
commit
d53d64a78d
1 file changed
+2
-2
@@ -18,7 +18,7 @@ public class TimedTasks
|
||||
/// <param name="sender">UdpSender, prefer priority port</param>
|
||||
public static async Task CheckForAlerts(string[] locations, UdpSender sender, int checkInterval)
|
||||
{
|
||||
if (Config.config.UseNationalLocations || !Config.config.GetAlerts)
|
||||
if (Config.config.LocationConfig.UseNationalLocations || !Config.config.GetAlerts)
|
||||
{
|
||||
Log.Debug("Disabling alert generation.");
|
||||
return;
|
||||
@@ -50,7 +50,7 @@ public class TimedTasks
|
||||
/// </summary>
|
||||
public static async Task ClearExpiredAlerts()
|
||||
{
|
||||
if (Config.config.UseNationalLocations || !Config.config.GetAlerts)
|
||||
if (Config.config.LocationConfig.UseNationalLocations || !Config.config.GetAlerts)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user