mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Don't assume that kill() will always succeed
This commit is contained in:
@@ -122,7 +122,10 @@ class ConsoleApplication(object):
|
||||
self._session.detach()
|
||||
self._session = None
|
||||
if self._spawned_pid is not None:
|
||||
self._device.kill(self._spawned_pid)
|
||||
try:
|
||||
self._device.kill(self._spawned_pid)
|
||||
except:
|
||||
pass
|
||||
if self._device is not None:
|
||||
self._device.off('lost', self._schedule_on_device_lost)
|
||||
mgr.off('changed', on_devices_changed)
|
||||
|
||||
Reference in New Issue
Block a user