kill fetch program on print stop

This commit is contained in:
Simon Voordouw 2017-06-20 14:13:49 +02:00
parent 2b0f6287d7
commit 28e131f8de
1 changed files with 2 additions and 0 deletions

View File

@ -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()