Make sure unoserver restarts on crash

This commit is contained in:
neko 2025-01-21 19:18:20 +05:00
parent 1fc54bbd9c
commit 7a160d5e02
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ def unoCheck(): # Check if unoserver even exists
def unoStart(): def unoStart():
unoserverPath = unoCheck() unoserverPath = unoCheck()
if unoserverPath: if unoserverPath:
subprocess.Popen(args=[unoserverPath, "--daemon"]) retval = 1
while retval != 0:
subprocess.Popen(args=[unoserverPath, "--daemon"])
else: else:
return return