fix pid:: int

This commit is contained in:
mantaohuang 2020-04-03 22:40:20 -04:00
parent 6e9e512ccc
commit f7da682e33

View File

@ -129,7 +129,7 @@ class Openvpn:
await asyncio.sleep(1)
got_pid = False
try:
self.PID = open(self.pid_fp, "r").read()
self.PID = int(open(self.pid_fp, "r").read())
got_pid = True
except:
got_pid = False