mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update ceval.c
This commit is contained in:
parent
c30a7adaff
commit
9b59a9764e
@ -116,8 +116,7 @@ __NEXT_STEP:
|
|||||||
|
|
||||||
#if PK_ENABLE_WATCHDOG
|
#if PK_ENABLE_WATCHDOG
|
||||||
if(self->watchdog_info.max_reset_time > 0) {
|
if(self->watchdog_info.max_reset_time > 0) {
|
||||||
clock_t now = clock();
|
if(!py_debugger_isattached() && clock() > self->watchdog_info.max_reset_time) {
|
||||||
if(now > self->watchdog_info.max_reset_time) {
|
|
||||||
self->watchdog_info.max_reset_time = 0;
|
self->watchdog_info.max_reset_time = 0;
|
||||||
TimeoutError("watchdog timeout");
|
TimeoutError("watchdog timeout");
|
||||||
goto __ERROR;
|
goto __ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user