From 28e131f8dee20d89c90dd31c7436160db7448fed Mon Sep 17 00:00:00 2001 From: Simon Voordouw Date: Tue, 20 Jun 2017 14:13:49 +0200 Subject: [PATCH] kill fetch program on print stop --- src/rest/api/api_printer.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index 04b08ce..137926c 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -161,6 +161,8 @@ function M.stop_POST(request, response) end local rv,msg = printer:stopPrint(argGcode) + io.popen("killall print-fetch") + response:addData('id', argId) if rv then response:setSuccess()