- detach all receivers before tuning to different transponder. Otherwise ABRT will be sent after tuning, which will destroy the LiveStreamer on the server.

This commit is contained in:
schmirl 2006-09-14 10:43:10 +00:00
parent 610719625a
commit 06265bab7b
1 changed files with 2 additions and 1 deletions

View File

@ -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);