move deleting start/endgcode files to stopFetch

This commit is contained in:
Simon Voordouw 2017-07-06 15:31:57 +02:00
parent 1bbb327178
commit 634465fdd6
1 changed files with 1 additions and 1 deletions

View File

@ -73,6 +73,7 @@ end
local function stopFetch()
io.popen("killall print-fetch")
io.popen("rm /tmp/startcode /tmp/endcode")
end
function M.progress(request, response)
@ -190,7 +191,6 @@ function M.stop_POST(request, response)
if not printer or not printer:hasSocket() then return end
stopFetch()
io.popen("rm /tmp/startcode /tmp/endcode")
setCurrentPrint(nil)
if(argGcode == nil) then