Skip to content

Commit 2ae0d8a

Browse files
committed
add comment for break
1 parent 01df45f commit 2ae0d8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mcp/client/streamable_http.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ async def _handle_sse_response(
310310
else None
311311
),
312312
)
313+
# If the SSE event indicates completion, like returning respose/error
314+
# break the loop
313315
if is_complete:
314316
break
315317
except Exception as e:

0 commit comments

Comments
 (0)