From f9224d0618777947f1bc242111f792657e3f5908 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sun, 13 Nov 2011 23:27:46 +0100 Subject: properly shutdown IGMP timeout handler thread when the plugin is stopped. Fixes occasional segfaults on VDR exit. --- server/componentIGMP.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/componentIGMP.c b/server/componentIGMP.c index 9ad7d30..223aa3c 100644 --- a/server/componentIGMP.c +++ b/server/componentIGMP.c @@ -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()) -- cgit v1.2.3