Skip to content

Commit 03e5cd0

Browse files
authored
wait for the process (#593)
fixes #571
1 parent 7fab7f6 commit 03e5cd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright/_impl/_transport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ def stop(self) -> None:
4848

4949
async def wait_until_stopped(self) -> None:
5050
await self._stopped_future
51+
await self._proc.wait()
5152

5253
async def run(self) -> None:
5354
self._loop = asyncio.get_running_loop()
5455
self._stopped_future: asyncio.Future = asyncio.Future()
5556

56-
proc = await asyncio.create_subprocess_exec(
57+
self._proc = proc = await asyncio.create_subprocess_exec(
5758
str(self._driver_executable),
5859
"run-driver",
5960
stdin=asyncio.subprocess.PIPE,

0 commit comments

Comments
 (0)