[libpeas] Small plugin loader info fixes



commit e4144d80baca67dd7078ba613d91c8316eef212f
Author: Garrett Regier <garrettregier gmail com>
Date:   Mon Sep 21 21:53:15 2015 -0700

    Small plugin loader info fixes

 libpeas/peas-engine.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 27ebd7d..4a2782b 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -829,6 +829,9 @@ peas_engine_enable_loader (PeasEngine  *engine,
 
   g_mutex_lock (&loaders_lock);
 
+  /* Don't check if the loader failed
+   * as we want to warn multiple times
+   */
   if (loaders[loader_id].enabled)
     {
       loader_info->enabled = TRUE;
@@ -857,6 +860,7 @@ peas_engine_enable_loader (PeasEngine  *engine,
                      peas_utils_get_loader_from_id (loader_ids[i]));
 
           loader_info->failed = TRUE;
+          loaders[loader_id].failed = TRUE;
           g_mutex_unlock (&loaders_lock);
           return;
         }
@@ -1492,6 +1496,7 @@ peas_engine_shutdown (void)
       /* Don't bother unloading the
        * module as it is always resident
        */
+      loader_info->enabled = FALSE;
       loader_info->failed = TRUE;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]