Make sure unoserver restarts on crash
This commit is contained in:
parent
1fc54bbd9c
commit
7a160d5e02
2
main.py
2
main.py
|
@ -57,6 +57,8 @@ def unoCheck(): # Check if unoserver even exists
|
||||||
def unoStart():
|
def unoStart():
|
||||||
unoserverPath = unoCheck()
|
unoserverPath = unoCheck()
|
||||||
if unoserverPath:
|
if unoserverPath:
|
||||||
|
retval = 1
|
||||||
|
while retval != 0:
|
||||||
subprocess.Popen(args=[unoserverPath, "--daemon"])
|
subprocess.Popen(args=[unoserverPath, "--daemon"])
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue