Skip to content

Commit 51e3d67

Browse files
committed
Minor edit to improve stuck conditional check.
1 parent f072e2b commit 51e3d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ PyWorker("worker.py", type="micropython")
11271127
break_loop = sync.notStuck
11281128
11291129
def is_not_stuck(condition):
1130-
if is_stuck():
1130+
if not condition and is_stuck():
11311131
# this is a must to reset the "stuck" state
11321132
break_loop()
11331133
# throw an error to get out of the loop

0 commit comments

Comments
 (0)