Software /
code /
prosody
Diff
net/server.lua @ 3461:447634564356
net.server: Don't load configmanager if not running inside Prosody, assume server_select
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Aug 2010 01:06:13 +0100 |
parent | 2968:fdd049a4e551 |
child | 4808:07d0a3a75c8a |
line wrap: on
line diff
--- a/net/server.lua Sun Aug 22 21:36:04 2010 +0100 +++ b/net/server.lua Mon Aug 23 01:06:13 2010 +0100 @@ -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");