From 9974612a934f22f94bf8ce57002a3a192c1dd5c1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 29 Mar 2018 16:57:18 +0200 Subject: Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1 --- net/server.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'net') 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 -- cgit v1.2.3