From 9fee70d6afb69236b4e4d8d06478f063f083783c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20PIERRE?= Date: Fri, 17 Jan 2025 01:20:54 +0100 Subject: [PATCH] Fix #407 --- src/develop/pixelpipe_hb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/develop/pixelpipe_hb.c b/src/develop/pixelpipe_hb.c index 3382a976de48..0658e65ae49e 100644 --- a/src/develop/pixelpipe_hb.c +++ b/src/develop/pixelpipe_hb.c @@ -2423,7 +2423,9 @@ restart:; // ... and in case of other errors ... if(err) { - pipe->status = DT_DEV_PIXELPIPE_INVALID; + // If the pipe returned because the killswitch was triggered, consir it unfinished. + // Then the main loop will attempt it again. + pipe->status = (dt_atomic_get_int(&pipe->shutdown)) ? DT_DEV_PIXELPIPE_DIRTY : DT_DEV_PIXELPIPE_INVALID; return 1; }