From 9b91301d943cfbec5208419704cfece84267223d Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Fri, 25 Nov 2011 00:24:37 +0100 Subject: Don't keep a pointer to the connection in components MulticastGroup structure as the connection may now be deleted from outside via menu. --- server/connectionIGMP.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/connectionIGMP.c') diff --git a/server/connectionIGMP.c b/server/connectionIGMP.c index 695c8bc..328fe44 100644 --- a/server/connectionIGMP.c +++ b/server/connectionIGMP.c @@ -64,12 +64,11 @@ void cConnectionIGMP::Welcome() esyslog("streamdev-server IGMP: GetDevice failed"); } -void cConnectionIGMP::Stop() +bool cConnectionIGMP::Close() { - if (m_LiveStreamer) { + if (m_LiveStreamer) m_LiveStreamer->Stop(); - DELETENULL(m_LiveStreamer); - } + return cServerConnection::Close(); } cString cConnectionIGMP::ToText() const -- cgit v1.2.3