+20
−8
Loading
Turning the loop off and on again (e.g. to change the binning) could leave the old thread alive: stop_looping() only waited for state 0, and the old thread found _looping True again and kept acquiring with the new one. Frames with the previous binning then reached the viewer. - stop_looping() joins the loop thread instead of waiting for state 0 - _run_loop() exits when a newer loop thread has replaced it Same fix as 1beb766e for the Mako. Applies to Camera and Guider (tec1). Co-Authored-By:Claude Opus 5.5 <noreply@anthropic.com>