Changeset

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
parents 3460:742f6e5a4066
children 3462:cf72ef3c9009
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");