# HG changeset patch # User Kim Alvefur # Date 1522335438 -7200 # Node ID d611c46c67875b352ef094cb13b48d4ba59e1351 # Parent 580c13ed0ca100637af1f3dd2938553d9ac0fdac Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1 diff -r 580c13ed0ca1 -r d611c46c6787 net/server.lua --- a/net/server.lua Thu Mar 29 16:36:18 2018 +0200 +++ b/net/server.lua Thu Mar 29 16:57:18 2018 +0200 @@ -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