beremiz

Fix bug in debug while stopping PLC

2012-11-13, Laurent Bessard
781ced3c0aef
Parents 55b8a16ead2b
Children 68ac754a5a72
Fix bug in debug while stopping PLC
--- a/graphics/GraphicCommons.py Thu Nov 08 18:54:34 2012 +0100
+++ b/graphics/GraphicCommons.py Tue Nov 13 11:36:04 2012 +0100
@@ -370,6 +370,9 @@
self.DataConsumers = {}
def ShouldRefresh(self):
+ wx.CallAfter(self._ShouldRefresh)
+
+ def _ShouldRefresh(self):
if DEBUG_REFRESH_LOCK.acquire(False):
self.AccessLock.acquire()
self.HasAcquiredLock = True