Comparison

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
comparison
equal deleted inserted replaced
6686:c5b512cddda0 6687:d1ee04683689
190 end 190 end
191 fire_event("service-removed", { name = service_name, service = service_info }); 191 fire_event("service-removed", { name = service_name, service = service_info });
192 end 192 end
193 193
194 function close(interface, port) 194 function close(interface, port)
195 local service, server = get_service_at(interface, port); 195 local service, service_server = get_service_at(interface, port);
196 if not service then 196 if not service then
197 return false, "port-not-open"; 197 return false, "port-not-open";
198 end 198 end
199 server:close(); 199 service_server:close();
200 active_services:remove(service.name, interface, port); 200 active_services:remove(service.name, interface, port);
201 log("debug", "Removed listening service %s from [%s]:%d", service.name, interface, port); 201 log("debug", "Removed listening service %s from [%s]:%d", service.name, interface, port);
202 return true; 202 return true;
203 end 203 end
204 204