Skip to content

Commit

Permalink
Give browser time to close
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Jan 29, 2025
1 parent 5e87b7a commit 18b35c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion choreographer/browser_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def _close(self) -> None:
return
except ChannelClosedError:
_logger.debug("Can send browser.close on close channel")

await asyncio.sleep(0.3)
await asyncio.to_thread(self._channel.close)

if await self._is_closed():
Expand Down

0 comments on commit 18b35c9

Please sign in to comment.