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:
parent
7f470a4aea
commit
e74b4d384d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user