mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-24 16:48:37 -07:00
klippy: Verify nothing attempts to pause in the klippy:ready event
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e549cc4143
commit
302df255db
1 changed files with 5 additions and 4 deletions
|
|
@ -158,10 +158,11 @@ class Printer:
|
|||
return
|
||||
try:
|
||||
self._set_state(message_ready)
|
||||
for cb in self.event_handlers.get("klippy:ready", []):
|
||||
if self.state_message is not message_ready:
|
||||
return
|
||||
cb()
|
||||
with self.reactor.assert_no_pause():
|
||||
for cb in self.event_handlers.get("klippy:ready", []):
|
||||
if self.state_message is not message_ready:
|
||||
return
|
||||
cb()
|
||||
except Exception as e:
|
||||
logging.exception("Unhandled exception during ready callback")
|
||||
self.invoke_shutdown("Internal error during ready callback: %s"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue