diff --git a/main.py b/main.py index 2047aaa..fa41b67 100644 --- a/main.py +++ b/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")