diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/server.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/net/server.lua b/net/server.lua index 76b06a2c..8b6fbc0b 100644 --- a/net/server.lua +++ b/net/server.lua @@ -6,13 +6,9 @@ -- COPYING file in the source package for more information. -- -local server_type = "select"; -local ok, configmanager = pcall(require, "core.configmanager"); -if ok then - server_type = configmanager.get("*", "network_backend") or "select"; - if require "core.configmanager".get("*", "use_libevent") then - server_type = "event"; - end +local server_type = prosody and require "core.configmanager".get("*", "network_backend") or "select"; +if prosody and require "core.configmanager".get("*", "use_libevent") then + server_type = "event"; end if server_type == "event" then |