summaryrefslogtreecommitdiff
path: root/server/connectionIGMP.c
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2011-11-25 00:24:37 +0100
committerFrank Schmirler <vdr@schmirler.de>2011-11-25 00:24:37 +0100
commit9b91301d943cfbec5208419704cfece84267223d (patch)
treef1fa7c428490eb8ee03cfa26297559c62f4d81c7 /server/connectionIGMP.c
parent7347e24123ec0b852091ec035cabce0e10278a72 (diff)
downloadvdr-plugin-streamdev-9b91301d943cfbec5208419704cfece84267223d.tar.gz
vdr-plugin-streamdev-9b91301d943cfbec5208419704cfece84267223d.tar.bz2
Don't keep a pointer to the connection in components MulticastGroup
structure as the connection may now be deleted from outside via menu.
Diffstat (limited to 'server/connectionIGMP.c')
-rw-r--r--server/connectionIGMP.c7
1 files changed, 3 insertions, 4 deletions
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