From 83262870d50da36039351c597b210ffe82198c17 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sat, 9 Aug 2014 22:59:31 +0200 Subject: [PATCH] Call detach only if receiver is attached --- server/livestreamer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/livestreamer.c b/server/livestreamer.c index e33c60d..6b18d15 100644 --- a/server/livestreamer.c +++ b/server/livestreamer.c @@ -608,7 +608,8 @@ void cStreamdevLiveStreamer::Attach(void) Dprintf("cStreamdevLiveStreamer::Attach()\n"); if (m_Device) { if (m_Receiver) { - m_Device->Detach(m_Receiver); + if (m_Receiver->IsAttached()) + m_Device->Detach(m_Receiver); m_Device->AttachReceiver(m_Receiver); } if (m_PatFilter) {