Mercurial > prosody-hg
comparison core/portmanager.lua @ 4612:8bb93860fe46
portmanager: Fire service-removed on unregister
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 14 Mar 2012 23:44:24 +0000 |
| parents | 83a5377ffea2 |
| children | 29a9988c1e1b |
comparison
equal
deleted
inserted
replaced
| 4611:8572373fa26f | 4612:8bb93860fe46 |
|---|---|
| 153 deactivate(service_name); | 153 deactivate(service_name); |
| 154 if #service_info_list > 0 then -- Other services registered with this name | 154 if #service_info_list > 0 then -- Other services registered with this name |
| 155 activate(service_name); -- Re-activate with the next available one | 155 activate(service_name); -- Re-activate with the next available one |
| 156 end | 156 end |
| 157 end | 157 end |
| 158 fire_event("service-removed", { name = service_name, service = service_info }); | |
| 158 end | 159 end |
| 159 | 160 |
| 160 function get_service(service_name) | 161 function get_service(service_name) |
| 161 return services[service_name]; | 162 return services[service_name]; |
| 162 end | 163 end |
