Skip to content

Commit 84629f3

Browse files
committed
Close browser before cancelling kaleido tasks.
1 parent 8ca2ae7 commit 84629f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/py/kaleido/kaleido.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Kaleido(choreo.Browser):
6565

6666
async def close(self) -> None:
6767
"""Close the browser."""
68+
await super().close()
6869
if self._tmp_dir:
6970
self._tmp_dir.clean()
7071
_logger.info("Cancelling tasks.")
@@ -75,7 +76,6 @@ async def close(self) -> None:
7576
if not task.done():
7677
task.cancel()
7778
_logger.info("Exiting Kaleido/Choreo")
78-
return await super().close()
7979

8080
async def __aexit__(
8181
self,

0 commit comments

Comments
 (0)