Skip to content

Commit 081f962

Browse files
deadlovelllmaurycy
andauthored
Apply suggestion from @maurycy
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
1 parent a0b0fa8 commit 081f962

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Modules/_remote_debugging/asyncio.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ parse_async_frame_chain(
792792

793793
Py_DECREF(frame_info);
794794

795-
// gh-158522: compare frame instead of code-object
795+
// Stop at the task's own frame. Code objects are shared by
796+
// recursive calls, so they cannot identify it.
796797
if (this_frame == running_task_frame) {
797798
break;
798799
}

0 commit comments

Comments
 (0)