1
0
镜像自地址 https://github.com/arsenetar/dupeguru.git 已同步 2025-07-06 23:43:20 +00:00

Properly wait for multiprocesses to exit

* Fix for #693
这个提交包含在:
glubsy 2020-07-28 16:44:06 +02:00
父节点 63b2f95cfa
当前提交 5f5f9232c1

查看文件

@ -9,7 +9,6 @@
import logging
import multiprocessing
from itertools import combinations
from time import sleep
from hscommon.util import extract, iterconsume
from hscommon.trans import tr
@ -255,9 +254,7 @@ def getmatches(pictures, cache_path, threshold, match_scaled=False, j=job.nulljo
ref.dimensions # pre-read dimensions for display in results
other.dimensions
result.append(get_match(ref, other, percentage))
# HACK this is a workaround for when the progress bar gets stuck sometimes,
# as we enter a deadlock somewhere and the sub-processes become zombies.
sleep(1)
pool.join()
return result