From 9ae54ecd8de7a6e278738a64bc7e5713e4448eb9 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 16 Aug 2013 19:26:23 +0200 Subject: [PATCH] using file size instead of file to check isBusy --- src/rest/api/api_printer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index 5d27901..b574b4e 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -127,7 +127,7 @@ local function isBusy(printerPath) local size = utils.fileSize(f) f:close() - return f > 0 + return size > 0 end