Quit runtime with SysTray icon menu should not crash anymore
authorEdouard Tisserant
Fri, 21 Sep 2012 16:22:56 +0200
changeset 836 b59e563bcada
parent 835 8145be14a2ae
child 837 fb0b66e9b4dd
Quit runtime with SysTray icon menu should not crash anymore
Beremiz_service.py
--- a/Beremiz_service.py	Thu Sep 20 22:30:41 2012 +0200
+++ b/Beremiz_service.py	Fri Sep 21 16:22:56 2012 +0200
@@ -414,7 +414,7 @@
                 evt.Skip()
             
             def OnTaskBarQuit(self, evt):
-                self.pyroserver.Quit()
+                Thread(target=self.pyroserver.Quit).start()
                 self.RemoveIcon()
                 wx.CallAfter(wx.GetApp().Exit)
                 evt.Skip()