not killing when pid is not assigned

This commit is contained in:
mantaohuang 2020-08-02 00:57:43 -04:00
parent 710811d641
commit edc9b2f510

View File

@ -109,8 +109,6 @@ class ProcessManager:
os.kill(self.pid, signal.SIGINT)
except Exception as err:
logging.warning(f"kill failed: {err}")
self.task.cancel()
self.pid = 0
self.task = None