From e7a74f3ad43c7ca09c7aa518adebec982237d36d Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Tue, 25 Mar 2014 23:50:30 +0200 Subject: [PATCH] Fixed reconnection. --- tuner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuner.c b/tuner.c index 004c395..39c6685 100644 --- a/tuner.c +++ b/tuner.c @@ -97,7 +97,7 @@ size_t cSatipTuner::HeaderCallback(void *ptrP, size_t sizeP, size_t nmembP, void void cSatipTuner::Action(void) { debug("cSatipTuner::%s(): entering", __FUNCTION__); - cTimeMs timeout(0); + cTimeMs timeout(eReConnectTimeoutMs); // Increase priority SetPriority(-1); // Do the thread loop @@ -129,7 +129,7 @@ void cSatipTuner::Action(void) } else { // Reconnect if necessary - if (openedM && !tunedM && timeout.TimedOut()) { + if (openedM && timeout.TimedOut()) { Disconnect(); Connect(); timeout.Set(eReConnectTimeoutMs);