not killing when pid is not assigned
This commit is contained in:
parent
710811d641
commit
edc9b2f510
@ -109,8 +109,6 @@ class ProcessManager:
|
|||||||
os.kill(self.pid, signal.SIGINT)
|
os.kill(self.pid, signal.SIGINT)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.warning(f"kill failed: {err}")
|
logging.warning(f"kill failed: {err}")
|
||||||
|
|
||||||
self.task.cancel()
|
|
||||||
self.pid = 0
|
self.pid = 0
|
||||||
self.task = None
|
self.task = None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user