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 | 36c0cf5d9dec93ab76e84104e16e3dd077f5f57a (patch) | |
tree | 9f7de36f4da98b391fca09b447e004d874cfef95 /core | |
parent | 4e5f5c41ae551495d5f14ae777de2ad27845b428 (diff) | |
download | prosody-36c0cf5d9dec93ab76e84104e16e3dd077f5f57a.tar.gz prosody-36c0cf5d9dec93ab76e84104e16e3dd077f5f57a.zip |
portmanager: Rename variable to avoid name conflict [luacheck]
Diffstat (limited to 'core')
-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; |