From 58e254ec6348bf06d270ad8070f856ea99ec4595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 16 Jun 2021 16:34:26 +0200 Subject: [PATCH] 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. --- .../module-protocol-pulse/modules/module-zeroconf-publish.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c b/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c index 4f9cc642e..cdba6d3a4 100644 --- a/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c +++ b/src/modules/module-protocol-pulse/modules/module-zeroconf-publish.c @@ -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)