Skip to content

Commit

Permalink
Darkroom: abort all pipelines early on leave()
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Jan 17, 2025
1 parent 3627882 commit d13902d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,10 @@ void enter(dt_view_t *self)
void leave(dt_view_t *self)
{
dt_develop_t *dev = (dt_develop_t *)self->data;

// Send all shutdown signals
dt_atomic_set_int(&dev->pipe->shutdown, TRUE);
dt_atomic_set_int(&dev->preview_pipe->shutdown, TRUE);
dev->exit = 1;

// Wait for pipelines to return
Expand Down

0 comments on commit d13902d

Please sign in to comment.