Skip to content

Commit 11e3830

Browse files
Cleanup Temp Profiles On Stop (#51)
* Call _cleanup_temporary_file after stop() runs. * Add change for temp profile cleanup * Update CHANGELOG.md --------- Co-authored-by: Stephan Lensky <8302875+stephanlensky@users.noreply.github.com>
1 parent 8e59813 commit 11e3830

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Added
1313

1414
- Add `tab.remove_handlers` method for removing handlers @khamaileon
15+
- Clean up temporary profiles when `Browser.stop()` is called @barrycarey
1516

1617
### Changed
1718

zendriver/core/browser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ async def stop(self):
587587
await self._process.wait()
588588
self._process = None
589589
self._process_pid = None
590+
await self._cleanup_temporary_profile()
590591

591592
async def _cleanup_temporary_profile(self) -> None:
592593
if not self.config or self.config.uses_custom_data_dir:

0 commit comments

Comments
 (0)