fix non-working logging at first connection to PLC after Beremiz launch
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 09 Sep 2016 17:53:32 +0300
changeset 1524 70fc5688741e
parent 1523 3519eee2bdf6
child 1525 36e912fac70f
fix non-working logging at first connection to PLC after Beremiz launch

At the same time this helps to avoid exception described in 1484:d5efbb20927e.
ProjectController.py
--- a/ProjectController.py	Fri Sep 09 13:39:24 2016 +0300
+++ b/ProjectController.py	Fri Sep 09 17:53:32 2016 +0300
@@ -1561,11 +1561,8 @@
         if connector is not None:
             if self.StatusTimer is not None:
                 # Start the status Timer
-                # Suppress WXDEBUG assertions, as happens by default with wx2.8
-                try:
-                    self.StatusTimer.Start(milliseconds=500, oneShot=False)
-                except:
-                    pass
+                wx.Yield()
+                self.StatusTimer.Start(milliseconds=500, oneShot=False)
         else:
             if self.StatusTimer is not None:
                 # Stop the status Timer