Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit f8262e3

Browse files
committed
Fix ff killing
1 parent 673a355 commit f8262e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/browser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ class Firefox(Browser):
305305

306306
def kill(self, force: bool):
307307
if is_win():
308-
subprocess.call(['taskkill', '/IM', 'firefox.exe'] + ['-9'] if force else [])
308+
subprocess.call(['taskkill'] + (['/F'] if force else []) + ['/IM', 'firefox.exe'])
309309
if is_mac():
310-
subprocess.call(['killall', 'Firefox'] + ['-9'] if force else [])
310+
subprocess.call(['killall'] + (['-9'] if force else []) + ['Firefox'] )
311311

312312
def terminate(self):
313313
self.kill(False)

0 commit comments

Comments
 (0)