* Rewrote Luci to be coroutine-safe allowing the use of non-forking webservers
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool.lua
index 69fb5cf..4335245 100644 (file)
@@ -500,7 +500,7 @@ function Graph.render( self, plugin, plugin_instance )
 
        -- check for a whole graph handler
        local plugin_def = "luci.statistics.rrdtool.definitions." .. plugin
-       local stat, def = pcall( require, plugin_def )
+       local stat, def = luci.util.copcall( require, plugin_def )
 
        if stat and def and type(def.rrdargs) == "function" then
 
@@ -539,7 +539,7 @@ function Graph.render( self, plugin, plugin_instance )
 
                        -- check for data type handler
                        local dtype_def = plugin_def .. "." .. dtype
-                       local stat, def = pcall( require, dtype_def )
+                       local stat, def = luci.util.copcall( require, dtype_def )
 
                        if stat and def and type(def.rrdargs) == "function" then