mod_stanza_counter/mod_stanza_counter_http.lua
changeset 568 3d66b0af9a15
parent 562 b3f8435e661c
child 592 03be4622454f
--- a/mod_stanza_counter/mod_stanza_counter_http.lua	Tue Jan 17 13:53:49 2012 +0000
+++ b/mod_stanza_counter/mod_stanza_counter_http.lua	Tue Jan 17 13:58:13 2012 +0000
@@ -53,7 +53,7 @@
         end
 
         -- if there are no handlers left clean and close the socket, doesn't work with server_event
-        local event = require "core.configmanager".get("*", "core", "use_libevent")
+        local event = module:get_option_boolen("use_libevent", false)
 
         if not event then
                 for _, options in ipairs(ports) do