Remove auto-restart from unoStart because its broken
This commit is contained in:
parent
07f2f6f910
commit
7a3b9a7a3c
10
main.py
10
main.py
|
@ -57,15 +57,7 @@ def unoCheck(): # Check if unoserver even exists
|
|||
|
||||
def unoStart():
|
||||
unoserverPath = unoCheck()
|
||||
if unoserverPath:
|
||||
while True:
|
||||
process = subprocess.Popen(args=[unoserverPath, "--daemon"])
|
||||
retval = process.wait()
|
||||
if retval == 0:
|
||||
break
|
||||
time.sleep(1)
|
||||
else:
|
||||
return
|
||||
subprocess.Popen(args=[unoserverPath, "--daemon"])
|
||||
|
||||
async def unoConvertDocument(sourceDocumentPath, sourceDocumentName):
|
||||
unoconvertPath = shutil.which("unoconvert")
|
||||
|
|
Loading…
Reference in New Issue