mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-30 22:55:40 +02:00
Syntax...
This commit is contained in:
parent
bf97781232
commit
70acc8a7c0
@ -403,7 +403,7 @@ if 'render_devices' in config: # Start a new thread for each device.
|
|||||||
if not isinstance(config['render_devices'], list):
|
if not isinstance(config['render_devices'], list):
|
||||||
raise Exception('Invalid render_devices value in config.')
|
raise Exception('Invalid render_devices value in config.')
|
||||||
for device in config['render_devices']:
|
for device in config['render_devices']:
|
||||||
if task_manager.is_alive(device):
|
if task_manager.is_alive(device) >= 1:
|
||||||
print(device, 'already registered.')
|
print(device, 'already registered.')
|
||||||
continue
|
continue
|
||||||
if not task_manager.start_render_thread(device):
|
if not task_manager.start_render_thread(device):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user