# HG changeset patch # User Matthew Wild # Date 1354651724 0 # Node ID 079e4cb23f8901b4c4edd2a6116c583fe0ad6755 # Parent 76e4651142e19b66737db63a85c56a9e004736f2 portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps) diff -r 76e4651142e1 -r 079e4cb23f89 core/portmanager.lua --- a/core/portmanager.lua Mon Dec 03 10:01:46 2012 +0500 +++ b/core/portmanager.lua Tue Dec 04 20:08:44 2012 +0000 @@ -190,7 +190,7 @@ end function get_service(service_name) - return services[service_name]; + return (services[service_name] or {})[1]; end function get_active_services(...)