From 36c0cf5d9dec93ab76e84104e16e3dd077f5f57a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 13 May 2015 17:08:20 +0100 Subject: portmanager: Rename variable to avoid name conflict [luacheck] --- core/portmanager.lua | 4 ++-- 1 file 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; -- cgit v1.2.3