mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Skip sending thread heartbeat if it alread asked to be finished
Otherwise the heartbeat message may fail to be processed and show up as leaked memory.
This commit is contained in:
parent
13831ca21b
commit
7db84dfcb6
1 changed files with 3 additions and 0 deletions
|
@ -260,6 +260,9 @@ void MsgThread::OnKill()
|
|||
|
||||
void MsgThread::Heartbeat()
|
||||
{
|
||||
if ( child_sent_finish )
|
||||
return;
|
||||
|
||||
SendIn(new HeartbeatMessage(this, network_time, current_time()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue