Fixed error message occuring sometime when quitting runtime from tray menu
authorEdouard Tisserant
Sat, 06 Oct 2012 00:23:51 +0200
changeset 850 072188d4d812
parent 849 7abb3f33b72d
child 851 666f5bdad301
Fixed error message occuring sometime when quitting runtime from tray menu
Beremiz_service.py
--- a/Beremiz_service.py	Thu Oct 04 17:58:45 2012 +0200
+++ b/Beremiz_service.py	Sat Oct 06 00:23:51 2012 +0200
@@ -416,7 +416,7 @@
             def OnTaskBarQuit(self, evt):
                 Thread(target=self.pyroserver.Quit).start()
                 self.RemoveIcon()
-                Timer(1, wx.CallAfter(wx.GetApp().Exit)).start()
+                wx.CallAfter(wx.GetApp().Exit)
                 evt.Skip()
             
             def UpdateIcon(self, plcstatus):