summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-03-02 19:04:16 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2015-03-02 19:04:16 +0200
commit83973f28c32415dba97bfb7c89815c24083e8b1c (patch)
tree0ac5336d1b1e2f1d023edaab9d00fddae68e36f1 /applications
parentde5ec52b8784cc44d9f7d391916b8d466ee8f5f6 (diff)
luci-statistics: fix uhttpd log spam from extra png close
Fix log spam that uhttpd logging change has brought to surface. Sun Mar 1 11:10:42 2015 daemon.err uhttpd[2293]: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute call dispatcher target for entry '/admin/statistics/graph/conntrack'. Sun Mar 1 11:10:42 2015 daemon.err uhttpd[2293]: The called action terminated with an exception: Sun Mar 1 11:10:42 2015 daemon.err uhttpd[2293]: .../luci/controller/luci_statistics/luci_statistics.lua:153: attempt to use a closed file Closing the png file explicitly on line 153 is unnecessary, as ltn12's source.file method already closes the file after use. https://github.com/openwrt/luci/blob/master/modules/luci-base/luasrc/ltn12.lua#L119 More info at https://dev.openwrt.org/ticket/19083#comment:2 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index 329341ddc4..c532b4a6d3 100644
--- a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@ -150,7 +150,6 @@ function statistics_render()
if png then
luci.http.prepare_content("image/png")
l12.pump.all(l12.source.file(png), luci.http.write)
- png:close()
end
return
end