Fixed bug with LastRefreshTimer when closing debug viewer
authorLaurent Bessard
Tue, 26 Feb 2013 01:16:28 +0100
changeset 942 2ba9d7e3be72
parent 941 b6e93549de2e
child 943 da7f80e04a54
Fixed bug with LastRefreshTimer when closing debug viewer
graphics/GraphicCommons.py
--- a/graphics/GraphicCommons.py	Tue Feb 26 01:14:20 2013 +0100
+++ b/graphics/GraphicCommons.py	Tue Feb 26 01:16:28 2013 +0100
@@ -381,7 +381,8 @@
         self.DataConsumers = {}
     
     def ShouldRefresh(self):
-        wx.CallAfter(self._ShouldRefresh)
+        if self:
+            wx.CallAfter(self._ShouldRefresh)
         
     def _ShouldRefresh(self):
         if DEBUG_REFRESH_LOCK.acquire(False):