0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-21 18:43:48 +01:00

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

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