From ae40b6ba8c6a0f38ba00c65b3690473fa6b0b957 Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Tue, 25 Oct 2022 03:00:50 -0400 Subject: [PATCH] Missed a is_alive check in the conversion. --- ui/sd_internal/task_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sd_internal/task_manager.py b/ui/sd_internal/task_manager.py index 0d26327e..efc53c08 100644 --- a/ui/sd_internal/task_manager.py +++ b/ui/sd_internal/task_manager.py @@ -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)