diff options
author | Philip Flohr <philip.flohr@student.kit.edu> | 2018-04-21 16:47:58 +0200 |
---|---|---|
committer | Philip Flohr <philip.flohr@student.kit.edu> | 2018-04-21 16:47:58 +0200 |
commit | 7861c8c03cfe675156d1a2ed6499dc8547ffdc3b (patch) | |
tree | f8476317c91930bae9e2762cc4e35616d2460c37 /src | |
parent | 34aa7a717cf3f19b77cd5556f2bda91cdbfb2a30 (diff) | |
download | profani-tty-7861c8c03cfe675156d1a2ed6499dc8547ffdc3b.tar.gz |
plugins_unload_all fails 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 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); } |