aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-23 21:09:25 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-23 21:09:25 +0100
commit28116c323879a11c7c8e5bef4a5b1af369628d71 (patch)
treef21f160257f17ab72edc0d677d94d291417f0598 /prosody
parent351a37ef5437d631d61975160d2b45d4789d0bd9 (diff)
downloadprosody-28116c323879a11c7c8e5bef4a5b1af369628d71.tar.gz
prosody-28116c323879a11c7c8e5bef4a5b1af369628d71.zip
prosody: net_activate_ports: Check listener exists before trying to open port for it
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index 80c0f6f2..e9f00598 100755
--- a/prosody
+++ b/prosody
@@ -195,6 +195,7 @@ function prepare_to_start()
local cl = require "net.connlisteners";
-- start listening on sockets
function net_activate_ports(option, listener, default, conntype)
+ if not cl.get(listener) then return; end
local ports = config.get("*", "core", option.."_ports") or default;
if type(ports) == "number" then ports = {ports} end;