1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 09:10:25 +08:00

kill child process after closing the gui (#1984)

This commit is contained in:
yxlllc
2024-04-20 19:19:34 +08:00
committed by GitHub
parent f7e440fc1d
commit 1ac5e09f68

View File

@@ -107,7 +107,9 @@ if __name__ == "__main__":
opt_q = Queue()
n_cpu = min(cpu_count(), 8)
for _ in range(n_cpu):
Harvest(inp_q, opt_q).start()
p = Harvest(inp_q, opt_q)
p.daemon = True
p.start()
class GUIConfig:
def __init__(self) -> None: