diff --git a/src/interpreter/ceval.c b/src/interpreter/ceval.c index 0d31e735..8480be2f 100644 --- a/src/interpreter/ceval.c +++ b/src/interpreter/ceval.c @@ -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;