diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index 4be0d31..4e5467e 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -72,8 +72,8 @@ local function getCurrentPrint() end local function stopFetch() - io.popen("killall print-fetch") - io.popen("rm /tmp/startcode /tmp/endcode") + io.popen("killall print-fetch"):close() + io.popen("rm /tmp/startcode /tmp/endcode"):close() end function M.progress(request, response)