Software /
code /
prosody
Diff
core/portmanager.lua @ 6687:d1ee04683689
portmanager: Rename variable to avoid name conflict [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 13 May 2015 17:08:20 +0100 |
parent | 6686:c5b512cddda0 |
child | 6688:1d4fb397e561 |
line wrap: on
line diff
--- a/core/portmanager.lua Wed May 13 17:07:30 2015 +0100 +++ b/core/portmanager.lua Wed May 13 17:08:20 2015 +0100 @@ -192,11 +192,11 @@ end function close(interface, port) - local service, server = get_service_at(interface, port); + local service, service_server = get_service_at(interface, port); if not service then return false, "port-not-open"; end - server:close(); + service_server:close(); active_services:remove(service.name, interface, port); log("debug", "Removed listening service %s from [%s]:%d", service.name, interface, port); return true;