Also closing file descriptor after removing current print file

This commit is contained in:
peteruithoven 2017-07-07 09:59:27 +02:00
parent 2ee6b05e61
commit 550e151153
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ end
local function setCurrentPrint(id)
local cpfileName = "/tmp/current-print"
if id == nil then
io.popen('rm ' .. cpfileName)
io.popen('rm ' .. cpfileName):close()
return true
end