# HG changeset patch
# User Edouard Tisserant
# Date 1348237376 -7200
# Node ID b59e563bcadae0739c8c9b620e2b25298df399a3
# Parent  8145be14a2ae9626af08ed7184d61bba8fdbf43d
Quit runtime with SysTray icon menu should not crash anymore

diff -r 8145be14a2ae -r b59e563bcada 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()