pulse-server: module-zeroconf-publish: remove unnecessary emit

Since !737 it is not required of modules to emit the "loaded"
event if they can load immediately, therefore remove the
unnecessary `module_emit_loaded()` call.

Furthermore remove redundant log messages as well.
This commit is contained in:
Barnabás Pőcze 2021-06-16 16:34:26 +02:00
parent 61bcd4f988
commit 58e254ec63

View file

@ -602,9 +602,6 @@ static int module_zeroconf_publish_load(struct client *client, struct module *mo
pw_manager_add_listener(data->manager, &data->manager_listener,
&manager_events, data);
pw_log_info("loaded module %p id:%u name:%s", module, module->idx, module->name);
module_emit_loaded(module, 0);
return 0;
}
@ -612,8 +609,6 @@ static int module_zeroconf_publish_unload(struct client *client, struct module *
{
struct module_zeroconf_publish_data *d = module->user_data;
pw_log_info("unload module %p id:%u name:%s", module, module->idx, module->name);
pw_manager_for_each_object(d->manager, service_free, d);
if (d->client)