Skip to content

Commit abdb46b

Browse files
committed
Moved Stdioclient instationtion to run
1 parent 467b858 commit abdb46b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lf_toolkit/io/stdio_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ class StdioServer(StreamServer):
3737

3838
def __init__(self, handler: Optional[Handler] = None):
3939
super().__init__(handler)
40-
self._client = StdioClient()
40+
4141

4242
def wrap_io(self, client: StreamIO) -> StreamIO:
4343
return PrefixStreamIO(client)
4444

4545
async def run(self):
46+
self._client = StdioClient()
4647
await self._handle_client(self._client)

0 commit comments

Comments
 (0)