From 37aa84c4aa86592483b30df1dbd56818096a3d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sat, 2 Aug 2014 07:54:15 +0200 Subject: [PATCH] Fixed MOBI processing anomalies --- kcc/KCC_gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 8cf5c3b..b798c6c 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -491,6 +491,8 @@ class WorkerThread(QtCore.QThread): worker.signals.result.connect(self.addResult) self.pool.start(worker) self.pool.waitForDone() + while len(self.workerOutput) != len(outputPath): + sleep(0.1) self.kindlegenErrorCode = [0] for errors in self.workerOutput: if errors[0] != 0: @@ -517,6 +519,8 @@ class WorkerThread(QtCore.QThread): worker.signals.result.connect(self.addResult) self.pool.start(worker) self.pool.waitForDone() + while len(self.workerOutput) != len(outputPath): + sleep(0.1) for success in self.workerOutput: if not success[0]: self.errors = True