Skip to content

Commit 6e13b43

Browse files
authored
Merge pull request #37 from csabakecskemeti/patch-1
Update gradio-client.mdx
2 parents 62b9e77 + 4937594 commit 6e13b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/en/unit2/gradio-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ try:
102102

103103
demo.launch()
104104
finally:
105-
mcp_client.close()
105+
mcp_client.disconnect()
106106
```
107107

108108
You'll notice that we're closing the MCP Client in the `finally` block. This is important because the MCP Client is a long-lived object that needs to be closed when the program exits.

0 commit comments

Comments
 (0)