Compare commits

...

1 Commits

Author SHA1 Message Date
Matti Viljanen
96a9846a2f plugin: Add debug output about closing and unloading plugins 2025-01-29 20:04:02 +02:00

View File

@@ -220,16 +220,20 @@ void __ofono_plugin_cleanup(void)
for (list = plugins; list; list = list->next) {
struct ofono_plugin *plugin = list->data;
if (plugin->active == TRUE && plugin->desc->exit)
if (plugin->active == TRUE && plugin->desc->exit) {
ofono_debug("Closing plugin %s", plugin->desc->name);
plugin->desc->exit();
}
}
/* Second pass - unload the libraries */
for (list = plugins; list; list = list->next) {
struct ofono_plugin *plugin = list->data;
if (plugin->handle)
if (plugin->handle) {
ofono_debug("Unloading plugin %s", plugin->desc->name);
dlclose(plugin->handle);
}
}
/* Finally, free the memory */