mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04:00
plugins_unload_all fails if one plugin unload operation fails
This commit is contained in:
parent
34aa7a717c
commit
7861c8c03c
@ -247,7 +247,7 @@ plugins_load(const char *const name)
|
|||||||
gboolean
|
gboolean
|
||||||
plugins_unload_all(void)
|
plugins_unload_all(void)
|
||||||
{
|
{
|
||||||
gboolean result = FALSE;
|
gboolean result = TRUE;
|
||||||
GList *plugin_names = g_hash_table_get_keys(plugins);
|
GList *plugin_names = g_hash_table_get_keys(plugins);
|
||||||
GList *plugin_names_dup = NULL;
|
GList *plugin_names_dup = NULL;
|
||||||
GList *curr = plugin_names;
|
GList *curr = plugin_names;
|
||||||
@ -259,8 +259,8 @@ plugins_unload_all(void)
|
|||||||
|
|
||||||
curr = plugin_names_dup;
|
curr = plugin_names_dup;
|
||||||
while (curr) {
|
while (curr) {
|
||||||
if (plugins_unload(curr->data)) {
|
if (!plugins_unload(curr->data)) {
|
||||||
result = TRUE;
|
result = FALSE;
|
||||||
}
|
}
|
||||||
curr = g_list_next(curr);
|
curr = g_list_next(curr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user