Browse Source

chromium: close properly

master
Shiz 1 year ago
parent
commit
22dd367562
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/overlay/chromium.py

+ 2
- 2
src/overlay/chromium.py View File

@ -159,12 +159,12 @@ class Chromium:
self.process = await trio.open_process([binary] + base_args + self.args, stderr=subprocess.PIPE)
return self.process
async def close(self):
def close(self):
if not self.process:
return
self.process.terminate()
self.process = None
self.profile_dir.__exit__()
self.profile_dir.__exit__(None, None, None)
self.profile_dir = None
async def connect(self):


Loading…
Cancel
Save