Move Debug message disabled message at the right place
authorlaurent
Thu, 08 Oct 2009 16:37:58 +0200
changeset 414 6f54c173aa19
parent 413 88ee3d7bd4eb
child 415 339fa2542481
Move Debug message disabled message at the right place
plugger.py
--- a/plugger.py	Thu Oct 08 16:37:06 2009 +0200
+++ b/plugger.py	Thu Oct 08 16:37:58 2009 +0200
@@ -1616,10 +1616,10 @@
                 #wx.CallAfter(self.logger.write, "Debugger unavailable\n")
                 pass
             else:
-                wx.CallAfter(self.logger.write, _("Debugger disabled\n"))
                 if self._connector.PLCIsStarting():
                     time.sleep(0.01)
                 else:
+                    wx.CallAfter(self.logger.write, _("Debugger disabled\n"))
                     self.debug_break = True
             self.IECdebug_lock.release()