aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/webhooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/webhooks.py')
-rw-r--r--klippy/webhooks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py
index 1c3645be..f6491187 100644
--- a/klippy/webhooks.py
+++ b/klippy/webhooks.py
@@ -255,8 +255,7 @@ class WebHooks:
def _handle_estop_request(self, web_request):
if web_request.get_method() != 'POST':
raise web_request.error("Invalid Request Method")
- gcode = self.printer.lookup_object('gcode')
- gcode.cmd_M112(None)
+ self.printer.invoke_shutdown("Shutdown due to webhooks request")
def get_connection(self):
return self.sconn