8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:03:04 +01:00

Prevent AV when thread detaches and no modules was loaded

This commit is contained in:
hvlad 2018-06-27 00:31:41 +03:00
parent 126e99072e
commit d8eb4a4970

View File

@ -1183,7 +1183,8 @@ void PluginManager::waitForType(unsigned int typeThatMustGoAway)
void PluginManager::threadDetach()
{
MutexLockGuard g(plugins->mutex, FB_FUNCTION);
modules->threadDetach();
if (modules)
modules->threadDetach();
}