summaryrefslogtreecommitdiff
path: root/src/persistence_client_library.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/persistence_client_library.c')
-rw-r--r--src/persistence_client_library.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/persistence_client_library.c b/src/persistence_client_library.c
index e0c7d9b..022e2a4 100644
--- a/src/persistence_client_library.c
+++ b/src/persistence_client_library.c
@@ -205,9 +205,11 @@ static int private_pclInitLibrary(const char* appName, int shutdownMode)
DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("PAS interface not enabled, enable with \"./configure --enable-pasinterface\""));
#endif
- if(load_custom_plugins(customAsyncInitClbk) < 0) // load custom plugins
+ if((rval = load_custom_plugins(customAsyncInitClbk)) < 0) // load custom plugins
{
DLT_LOG(gPclDLTContext, DLT_LOG_WARN, DLT_STRING("Failed to load custom plugins"));
+ pthread_mutex_unlock(&gDbusPendingRegMtx);
+ return rval;
}
init_key_handle_array();