From 06265bab7bd5dea2e561a1c62b39ebcf36b164e3 Mon Sep 17 00:00:00 2001 From: schmirl Date: Thu, 14 Sep 2006 10:43:10 +0000 Subject: [PATCH] - detach all receivers before tuning to different transponder. Otherwise ABRT will be sent after tuning, which will destroy the LiveStreamer on the server. --- client/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/device.c b/client/device.c index 5652c13..c8506c3 100644 --- a/client/device.c +++ b/client/device.c @@ -1,5 +1,5 @@ /* - * $Id: device.c,v 1.6 2005/04/24 16:21:59 lordjaxom Exp $ + * $Id: device.c,v 1.7 2006/09/14 10:43:10 schmirl Exp $ */ #include "client/device.h" @@ -101,6 +101,7 @@ bool cStreamdevDevice::SetChannelDevice(const cChannel *Channel, && TRANSPONDER(Channel, m_Channel)) return true; + DetachAllReceivers(); m_Channel = Channel; bool r = ClientSocket.SetChannelDevice(m_Channel); Dprintf("setchanneldevice r=%d\n", r);