Skip to content

Commit 550e151

Browse files
committed
Also closing file descriptor after removing current print file
1 parent 2ee6b05 commit 550e151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rest/api/api_printer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
local function setCurrentPrint(id)
5252
local cpfileName = "/tmp/current-print"
5353
if id == nil then
54-
io.popen('rm ' .. cpfileName)
54+
io.popen('rm ' .. cpfileName):close()
5555
return true
5656
end
5757

0 commit comments

Comments
 (0)