From ee92f30f090b24e43e112fcf811cf7590e56c185 Mon Sep 17 00:00:00 2001 From: hvlad Date: Sun, 22 Apr 2018 00:31:55 +0300 Subject: [PATCH] Avoid recursive locking of plugins list mutex. This fixed deadlock at PluginSet::next. --- src/yvalve/PluginManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/yvalve/PluginManager.cpp b/src/yvalve/PluginManager.cpp index c74b2cc3c6..0b9049a7aa 100644 --- a/src/yvalve/PluginManager.cpp +++ b/src/yvalve/PluginManager.cpp @@ -1088,8 +1088,6 @@ IPluginSet* PluginManager::getPlugins(CheckStatusWrapper* status, unsigned int i static InitMutex registerBuiltinPlugins("RegisterBuiltinPlugins"); registerBuiltinPlugins.init(); - MutexLockGuard g(plugins->mutex, FB_FUNCTION); - IPluginSet* rc = FB_NEW PluginSet(interfaceType, namesList, firebirdConf); rc->addRef(); return rc;