瀏覽代碼

Update ceval.c

blueloveTH 6 月之前
父節點
當前提交
9b59a9764e
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/interpreter/ceval.c

+ 1 - 2
src/interpreter/ceval.c

@@ -116,8 +116,7 @@ __NEXT_STEP:
 
 #if PK_ENABLE_WATCHDOG
     if(self->watchdog_info.max_reset_time > 0) {
-        clock_t now = clock();
-        if(now > self->watchdog_info.max_reset_time) {
+        if(!py_debugger_isattached() && clock() > self->watchdog_info.max_reset_time) {
             self->watchdog_info.max_reset_time = 0;
             TimeoutError("watchdog timeout");
             goto __ERROR;