diff options
Diffstat (limited to 'switchtimer_thread.c')
-rw-r--r-- | switchtimer_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 7f6388f..2988498 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -97,7 +97,8 @@ void cSwitchTimerThread::Action(void) { LogFile.Log(1,"switching to channel %d", channel->Number()); cString cmd = cString::sprintf("CHAN %d", channel->Number()); - SendViaSVDRP(cmd); + if (cDevice::CurrentChannel() != channel->Number()) + SendViaSVDRP(cmd); if (switchTimer->unmute && cDevice::PrimaryDevice()->IsMute()) cDevice::PrimaryDevice()->ToggleMute(); |