# HG changeset patch # User Matthew Wild # Date 1431533300 -3600 # Node ID d1ee04683689260aaddad12227e81e62c55394b0 # Parent c5b512cddda0a91656e6dddd6134fa8f63ea81b5 portmanager: Rename variable to avoid name conflict [luacheck] diff -r c5b512cddda0 -r d1ee04683689 core/portmanager.lua --- 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;