print error for kill
This commit is contained in:
parent
80bb46dfe1
commit
8bdcb8bc4b
@ -95,8 +95,8 @@ class Openvpn:
|
|||||||
if self.status == RUNNING:
|
if self.status == RUNNING:
|
||||||
try:
|
try:
|
||||||
await self.proc.kill()
|
await self.proc.kill()
|
||||||
except:
|
except Exception as err:
|
||||||
print("kill failed")
|
print("kill failed:", err)
|
||||||
|
|
||||||
self.status = IDLE
|
self.status = IDLE
|
||||||
self.run_task.cancel()
|
self.run_task.cancel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user