Changeset

5225:079e4cb23f89

portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps)
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Dec 2012 20:08:44 +0000
parents 5223:76e4651142e1
children 5226:c918aafb9c2e 5227:97f395938028
files core/portmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(...)