diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-02-20 10:22:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 10:22:49 +0100 |
commit | fbbf920e2a36079a63ad74b258564fbf5200212e (patch) | |
tree | 9e0956275814ed4c9dc47fc6735634df9fe82f2f /src | |
parent | 0c07b7cf509a4e6a40f4debaec36f510c59552bf (diff) | |
parent | 7861c8c03cfe675156d1a2ed6499dc8547ffdc3b (diff) | |
download | profani-tty-fbbf920e2a36079a63ad74b258564fbf5200212e.tar.gz |
Merge pull request #995 from philipflohr/plugins_unload_all
let plugins_unload_all fail if one plugin unload operation fails
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugins.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index 124e8f65..41885541 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -270,7 +270,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; @@ -282,8 +282,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); } |