Diff

core/portmanager.lua @ 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
parent 5087:71a5a6a6c74c
child 5319:d20861bf900b
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(...)