portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps)
authorMatthew Wild <mwild1@gmail.com>
Tue, 04 Dec 2012 20:08:44 +0000
changeset 5225 079e4cb23f89
parent 5223 76e4651142e1
child 5226 c918aafb9c2e
child 5227 97f395938028
portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps)
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(...)