Add forgotten f:close() (#10796)

This commit is contained in:
zwim
2023-08-09 19:24:46 +02:00
committed by GitHub
parent f3fc2ac353
commit ac143ca9d6

View File

@@ -38,6 +38,7 @@ local function checkStandby()
return no
end
local mode = f:read()
f:close()
logger.dbg("Kobo: available power states:", mode)
if mode and mode:find("standby") then
logger.dbg("Kobo: standby state is supported")