1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

Fixed reconnection.

This commit is contained in:
Rolf Ahrenberg 2014-03-25 23:50:30 +02:00
parent 40d280af10
commit e7a74f3ad4

View File

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