mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-05-06 20:01:37 +08:00
kill child process after closing the gui (#1984)
This commit is contained in:
parent
f7e440fc1d
commit
1ac5e09f68
@ -107,7 +107,9 @@ if __name__ == "__main__":
|
|||||||
opt_q = Queue()
|
opt_q = Queue()
|
||||||
n_cpu = min(cpu_count(), 8)
|
n_cpu = min(cpu_count(), 8)
|
||||||
for _ in range(n_cpu):
|
for _ in range(n_cpu):
|
||||||
Harvest(inp_q, opt_q).start()
|
p = Harvest(inp_q, opt_q)
|
||||||
|
p.daemon = True
|
||||||
|
p.start()
|
||||||
|
|
||||||
class GUIConfig:
|
class GUIConfig:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user