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

Fixed bug CORE-5034 : At least 5 seconds delay on disconnect could happen if disconnect happens close after Event Manager initialization

This commit is contained in:
hvlad 2015-11-24 23:33:13 +00:00
parent 7f470a4aea
commit e74b4d384d

View File

@ -1400,13 +1400,24 @@ void EventManager::watcher_thread()
(void) m_sharedMemory->eventWait(&m_process->prb_event, value, 0);
}
m_cleanupSemaphore.release();
}
catch (const Firebird::Exception& ex)
{
iscLogException("Error in event watcher thread\n", ex);
}
try
{
if (startup)
{
m_startupSemaphore.release();
}
m_cleanupSemaphore.release();
}
catch (const Firebird::Exception& ex)
{
iscLogException("Error closing event watcher thread\n", ex);
}
}
} // namespace