From 28116c323879a11c7c8e5bef4a5b1af369628d71 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 23 Jul 2009 21:09:25 +0100 Subject: prosody: net_activate_ports: Check listener exists before trying to open port for it --- prosody | 1 + 1 file changed, 1 insertion(+) (limited to 'prosody') 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; -- cgit v1.2.3