Update ceval.c

This commit is contained in:
blueloveTH 2025-10-07 21:51:20 +08:00
parent 4a62244352
commit e4c8526da3

View File

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