mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
fix heart_beat_interval -- initialization in constructor does not work anymore (probably due to change in init ordering?)
This commit is contained in:
parent
fd70560017
commit
384fc730d4
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ void Manager::KillThreads()
|
|||
|
||||
void Manager::AddThread(BasicThread* thread)
|
||||
{
|
||||
if ( heart_beat_interval == 0 ) {
|
||||
// sometimes initialization does not seem to work from constructor
|
||||
heart_beat_interval = double(BifConst::Threading::heart_beat_interval);
|
||||
DBG_LOG(DBG_THREADING, "Heart beat interval set to %f", heart_beat_interval);
|
||||
}
|
||||
|
||||
DBG_LOG(DBG_THREADING, "Adding thread %s ...", thread->Name().c_str());
|
||||
all_threads.push_back(thread);
|
||||
idle = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue