Skip to content

Commit 0248beb

Browse files
update
1 parent 305eb27 commit 0248beb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

appium/webdriver/appium_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ def stop(self, timeout: float = 5.5) -> bool:
145145
try:
146146
self._process.communicate(timeout=timeout)
147147
except sp.SubprocessError:
148-
self._process.kill()
148+
if sys.platform == 'win32':
149+
sp.call(['taskkill', '/f', '/pid', str(self._process.pid)])
150+
else:
151+
self._process.kill()
149152
self._process = None
150153
self._cmd = None
151154
return was_running

0 commit comments

Comments
 (0)