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:
Jon Siwek 2019-12-27 09:10:01 -08:00
parent 13831ca21b
commit 7db84dfcb6

View file

@ -260,6 +260,9 @@ void MsgThread::OnKill()
void MsgThread::Heartbeat() void MsgThread::Heartbeat()
{ {
if ( child_sent_finish )
return;
SendIn(new HeartbeatMessage(this, network_time, current_time())); SendIn(new HeartbeatMessage(this, network_time, current_time()));
} }