Skip to content

Commit

Permalink
Stop passive clocks after all active clocks have been stopped.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Nov 1, 2024
1 parent a69db6e commit ee02341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/clock.ml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ let unify =
let () =
Lifecycle.before_core_shutdown ~name:"Clocks stop" (fun () ->
Atomic.set global_stop true;
Queue.iter active_clocks stop)
Queue.iter active_clocks stop;
WeakQueue.iter passive_clocks stop)

let _animated_sources { outputs; active_sources } =
Queue.elements outputs @ WeakQueue.elements active_sources
Expand Down

0 comments on commit ee02341

Please sign in to comment.