Skip to content

Commit 305eb27

Browse files
Use sigkill
1 parent 0a657f7 commit 305eb27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

appium/webdriver/appium_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ def stop(self, timeout: float = 5.5) -> bool:
145145
try:
146146
self._process.communicate(timeout=timeout)
147147
except sp.SubprocessError:
148-
import signal
149-
150-
os.kill(self._process.pid, signal.SIGKILL)
148+
self._process.kill()
151149
self._process = None
152150
self._cmd = None
153151
return was_running

0 commit comments

Comments
 (0)