Skip to content

Commit d8756ad

Browse files
committed
Remove unused chatbot stdio context attribute
1 parent 91941ed commit d8756ad

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • examples/clients/simple-chatbot/mcp_simple_chatbot

‎examples/clients/simple-chatbot/mcp_simple_chatbot/main.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class Server:
6868
def __init__(self, name: str, config: dict[str, Any]) -> None:
6969
self.name: str = name
7070
self.config: dict[str, Any] = config
71-
self.stdio_context: Any | None = None
7271
self.session: ClientSession | None = None
7372
self._cleanup_lock: asyncio.Lock = asyncio.Lock()
7473
self.exit_stack: AsyncExitStack = AsyncExitStack()
@@ -165,7 +164,6 @@ async def cleanup(self) -> None:
165164
try:
166165
await self.exit_stack.aclose()
167166
self.session = None
168-
self.stdio_context = None
169167
except Exception as e:
170168
logging.error(f"Error during cleanup of server {self.name}: {e}")
171169

0 commit comments

Comments
 (0)