Software /
code /
prosody
Changeset
8700:d611c46c6787
Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Mar 2018 16:57:18 +0200 |
parents | 8699:580c13ed0ca1 |
children | 8701:b7a22baaf55f |
files | net/server.lua |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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