Missed a is_alive check in the conversion.

This commit is contained in:
Marc-Andre Ferland 2022-10-25 03:00:50 -04:00
parent d482427e0d
commit ae40b6ba8c

View File

@ -381,7 +381,7 @@ def shutdown_event(): # Signal render thread to close on shutdown
current_state_error = SystemExit('Application shutting down.')
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.')
# Alive, check if task in cache
task = task_cache.tryGet(req.session_id)