Also closing file descriptor after removing current print file
This commit is contained in:
parent
2ee6b05e61
commit
550e151153
|
@ -51,7 +51,7 @@ end
|
||||||
local function setCurrentPrint(id)
|
local function setCurrentPrint(id)
|
||||||
local cpfileName = "/tmp/current-print"
|
local cpfileName = "/tmp/current-print"
|
||||||
if id == nil then
|
if id == nil then
|
||||||
io.popen('rm ' .. cpfileName)
|
io.popen('rm ' .. cpfileName):close()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue