write ErrorLog if the LTE Module is not reachable
authorStricted <info@stricted.net>
Thu, 12 Jan 2017 03:26:03 +0000 (04:26 +0100)
committerStricted <info@stricted.net>
Thu, 12 Jan 2017 03:26:03 +0000 (04:26 +0100)
SpeedportHybridControl.Implementations/util.cs

index 74ee8388f5bd22673c9824b71c106855b97f8a11..fc743f2567493b5db5e807cac5bb654c07ce6feb 100644 (file)
@@ -255,8 +255,14 @@ namespace SpeedportHybridControl.Implementations
                                {
                                        return true;
                                }
+                               else
+                               {
+                                       LogManager.WriteToLog("unable to reach LTE Modul");
+                               }
+                       }
+                       catch (PingException) {
+                               LogManager.WriteToLog("unable to reach LTE Modul");
                        }
-                       catch (PingException) { }
 
                        return false;
                }