Remove auto-restart from unoStart because its broken

This commit is contained in:
neko 2025-01-22 14:04:55 +05:00
parent 07f2f6f910
commit 7a3b9a7a3c
1 changed files with 1 additions and 9 deletions

10
main.py
View File

@ -57,15 +57,7 @@ def unoCheck(): # Check if unoserver even exists
def unoStart(): def unoStart():
unoserverPath = unoCheck() unoserverPath = unoCheck()
if unoserverPath: subprocess.Popen(args=[unoserverPath, "--daemon"])
while True:
process = subprocess.Popen(args=[unoserverPath, "--daemon"])
retval = process.wait()
if retval == 0:
break
time.sleep(1)
else:
return
async def unoConvertDocument(sourceDocumentPath, sourceDocumentName): async def unoConvertDocument(sourceDocumentPath, sourceDocumentName):
unoconvertPath = shutil.which("unoconvert") unoconvertPath = shutil.which("unoconvert")