fix pid:: int
This commit is contained in:
parent
6e9e512ccc
commit
f7da682e33
@ -129,7 +129,7 @@ class Openvpn:
|
|||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
got_pid = False
|
got_pid = False
|
||||||
try:
|
try:
|
||||||
self.PID = open(self.pid_fp, "r").read()
|
self.PID = int(open(self.pid_fp, "r").read())
|
||||||
got_pid = True
|
got_pid = True
|
||||||
except:
|
except:
|
||||||
got_pid = False
|
got_pid = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user