From 6557050968abf85f9a81ee1bfdf02109262bfce5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 6 Oct 2025 21:53:36 -0400 Subject: [PATCH] motion_queuing: Verify nothing attempts to pause in flush callbacks Signed-off-by: Kevin O'Connor --- klippy/extras/motion_queuing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/klippy/extras/motion_queuing.py b/klippy/extras/motion_queuing.py index e1a0d7fcc..c5fa73628 100644 --- a/klippy/extras/motion_queuing.py +++ b/klippy/extras/motion_queuing.py @@ -141,8 +141,9 @@ class PrinterMotionQueuing: step_gen_time = max(want_step_gen_time, self.last_step_gen_time, flush_time) # Invoke flush callbacks (if any) - for cb in self.flush_callbacks: - cb(flush_time, step_gen_time) + with self.reactor.assert_no_pause(): + for cb in self.flush_callbacks: + cb(flush_time, step_gen_time) # Determine maximum history to keep trapq_free_time = step_gen_time - self.kin_flush_delay clear_history_time = self.clear_history_time