Skip to content

Commit 215867d

Browse files
authored
Update server.py
1 parent 4287a45 commit 215867d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/agents/mcp/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ async def connect(self):
110110
ClientSession(
111111
read,
112112
write,
113-
read_timeout_seconds=timedelta(seconds=self.client_session_timeout_seconds),
113+
timedelta(seconds=self.client_session_timeout_seconds)
114+
if self.client_session_timeout_seconds
115+
else None,
114116
)
115117
)
116118
await session.initialize()

0 commit comments

Comments
 (0)