mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-24 19:38:23 +02:00
Missed a is_alive check in the conversion.
This commit is contained in:
parent
d482427e0d
commit
ae40b6ba8c
@ -381,7 +381,7 @@ def shutdown_event(): # Signal render thread to close on shutdown
|
|||||||
current_state_error = SystemExit('Application shutting down.')
|
current_state_error = SystemExit('Application shutting down.')
|
||||||
|
|
||||||
def render(req : ImageRequest):
|
def render(req : ImageRequest):
|
||||||
if not is_alive(): # Render thread is dead
|
if is_alive() <= 0: # Render thread is dead
|
||||||
raise ChildProcessError('Rendering thread has died.')
|
raise ChildProcessError('Rendering thread has died.')
|
||||||
# Alive, check if task in cache
|
# Alive, check if task in cache
|
||||||
task = task_cache.tryGet(req.session_id)
|
task = task_cache.tryGet(req.session_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user