clean up created Chromium instances
This commit is contained in:
parent
71ad68ba4a
commit
9830183d01
|
@ -119,6 +119,9 @@ class Chromium:
|
|||
self.profile_dir = None
|
||||
self.process = None
|
||||
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
||||
async def launch(self):
|
||||
if self.process:
|
||||
await self.close()
|
||||
|
|
Loading…
Reference in New Issue