Software /
code /
prosody
Diff
core/portmanager.lua @ 4743:70d68e789d93
portmanager: Rename activate_service() to activate() (to match deactivate())
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 01:27:46 +0100 |
parent | 4742:23c2ece2c8bc |
child | 4744:3be37768720d |
line wrap: on
line diff
--- a/core/portmanager.lua Sat Apr 28 01:27:15 2012 +0100 +++ b/core/portmanager.lua Sat Apr 28 01:27:46 2012 +0100 @@ -71,7 +71,7 @@ --- Public API -function activate_service(service_name) +function activate(service_name) local service_info = services[service_name][1]; if not service_info then return nil, "Unknown service: "..service_name; @@ -146,7 +146,7 @@ if not active_services:get(service_name) then log("debug", "No active service for %s, activating...", service_name); - local ok, err = activate_service(service_name); + local ok, err = activate(service_name); if not ok then log("error", "Failed to activate service '%s': %s", service_name, err or "unknown error"); end