If the settings are changed while collecting weather, ignore the exception
This commit is contained in:
parent
00b228c008
commit
df7e4f2044
@ -25,6 +25,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model.Sensor {
|
|||||||
|
|
||||||
private void BackGroundRunner() {
|
private void BackGroundRunner() {
|
||||||
while(this.backgroundrunnerAlive) {
|
while(this.backgroundrunnerAlive) {
|
||||||
|
try {
|
||||||
List<Warning> ret = new List<Warning>();
|
List<Warning> ret = new List<Warning>();
|
||||||
foreach(Int32 item in Settings.Instance.Internal.WeatherCellIDs) {
|
foreach(Int32 item in Settings.Instance.Internal.WeatherCellIDs) {
|
||||||
try {
|
try {
|
||||||
@ -44,6 +45,7 @@ namespace Fraunhofer.Fit.IoT.LoraMap.Model.Sensor {
|
|||||||
Thread.Sleep(60);
|
Thread.Sleep(60);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user