about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <[email protected]>2014-08-02 07:54:15 +0200
committerPaweł Jastrzębski <[email protected]>2014-08-02 07:54:15 +0200
commit37aa84c4aa86592483b30df1dbd56818096a3d4b (patch)
tree241dd9a4b30f9e6ed5cce686678b6b5cb25caca2
parentReplaced margin color detection algorithm (diff)
downloadkcc-37aa84c4aa86592483b30df1dbd56818096a3d4b.tar.gz
kcc-37aa84c4aa86592483b30df1dbd56818096a3d4b.tar.bz2
kcc-37aa84c4aa86592483b30df1dbd56818096a3d4b.zip
Fixed MOBI processing anomalies
-rw-r--r--kcc/KCC_gui.py4
1 files changed, 4 insertions, 0 deletions
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