# HG changeset patch
# User Laurent Bessard
# Date 1384936693 -3600
# Node ID f8acd48e03427b684af779c5e2e235b40780d452
# Parent  dc94c71a2f2512cc667335b298a878179ff1b018
Fixed bug in debugger when debug tick received is None

diff -r dc94c71a2f25 -r f8acd48e0342 ProjectController.py
--- a/ProjectController.py	Wed Nov 13 23:25:26 2013 +0100
+++ b/ProjectController.py	Wed Nov 20 09:38:13 2013 +0100
@@ -1374,7 +1374,8 @@
             #print [dict.keys() for IECPath, (dict, log, status, fvalue) in self.IECdebug_datas.items()]
             if plc_status == "Started":
                 self.IECdebug_lock.acquire()
-                if (len(debug_vars) == len(self.DebugValuesBuffers) and
+                if (debug_tick is not None and
+                    len(debug_vars) == len(self.DebugValuesBuffers) and
                     len(debug_vars) == len(self.TracedIECPath)):
                     if debug_getvar_retry > DEBUG_RETRIES_WARN:
                         self.logger.write(_("... debugger recovered\n"))