aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-23 01:06:13 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-23 01:06:13 +0100
commit5ceda8f54625007a183b5fe772f979141d102de4 (patch)
tree40effd27378111d0c92d977ec62e939efecb3a48
parent363d0578c0a0af5e7338e563b8484b3f05bed788 (diff)
downloadprosody-5ceda8f54625007a183b5fe772f979141d102de4.tar.gz
prosody-5ceda8f54625007a183b5fe772f979141d102de4.zip
net.server: Don't load configmanager if not running inside Prosody, assume server_select
-rw-r--r--net/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index e0d4b85a..1c1a63a4 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -6,7 +6,7 @@
-- COPYING file in the source package for more information.
--
-local use_luaevent = require "core.configmanager".get("*", "core", "use_libevent");
+local use_luaevent = prosody and require "core.configmanager".get("*", "core", "use_libevent");
if use_luaevent then
use_luaevent = pcall(require, "luaevent.core");