properly shutdown IGMP timeout handler thread when the plugin is stopped.

Fixes occasional segfaults on VDR exit.
This commit is contained in:
Frank Schmirler
2011-11-13 23:27:46 +01:00
parent 30674fb6c8
commit f9224d0618
2 changed files with 5 additions and 1 deletions

View File

@@ -144,7 +144,9 @@ void cComponentIGMP::Destruct(void)
{
if (m_MaxChannelNumber > 0)
{
Cancel(3);
Cancel(-1);
m_CondWait.Signal();
Cancel(2);
for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel))
{
if (channel->GroupSep())