fix pid:: int
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user