diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-13 17:08:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-13 17:08:20 +0100 |
commit | 02a7b8a2158a99029d7465c06b548a7a988faa2c (patch) | |
tree | 9f7de36f4da98b391fca09b447e004d874cfef95 | |
parent | 87c31947552d1ccd1695c8c1c7279db1ffe648a0 (diff) | |
download | prosody-02a7b8a2158a99029d7465c06b548a7a988faa2c.tar.gz prosody-02a7b8a2158a99029d7465c06b548a7a988faa2c.zip |
portmanager: Rename variable to avoid name conflict [luacheck]
-rw-r--r-- | core/portmanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index ca99a1dd..e7516886 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -192,11 +192,11 @@ function unregister_service(service_name, service_info) 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; |