From 7861c8c03cfe675156d1a2ed6499dc8547ffdc3b Mon Sep 17 00:00:00 2001 From: Philip Flohr Date: Sat, 21 Apr 2018 16:47:58 +0200 Subject: plugins_unload_all fails if one plugin unload operation fails --- src/plugins/plugins.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index ced170fe..5ec90d0c 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -247,7 +247,7 @@ plugins_load(const char *const name) gboolean plugins_unload_all(void) { - gboolean result = FALSE; + gboolean result = TRUE; GList *plugin_names = g_hash_table_get_keys(plugins); GList *plugin_names_dup = NULL; GList *curr = plugin_names; @@ -259,8 +259,8 @@ plugins_unload_all(void) curr = plugin_names_dup; while (curr) { - if (plugins_unload(curr->data)) { - result = TRUE; + if (!plugins_unload(curr->data)) { + result = FALSE; } curr = g_list_next(curr); } -- cgit 1.4.1-2-gfad0