If the settings are changed while collecting weather, ignore the exception

This commit is contained in:
BlubbFish 2021-08-29 00:46:46 +02:00
parent 00b228c008
commit df7e4f2044

View File

@ -25,6 +25,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model.Sensor {
private void BackGroundRunner() {
while(this.backgroundrunnerAlive) {
try {
List<Warning> ret = new List<Warning>();
foreach(Int32 item in Settings.Instance.Internal.WeatherCellIDs) {
try {
@ -44,6 +45,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model.Sensor {
Thread.Sleep(60);
}
}
} catch { }
}
}