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:
parent
40d280af10
commit
e7a74f3ad4
4
tuner.c
4
tuner.c
@ -97,7 +97,7 @@ size_t cSatipTuner::HeaderCallback(void *ptrP, size_t sizeP, size_t nmembP, void
|
|||||||
void cSatipTuner::Action(void)
|
void cSatipTuner::Action(void)
|
||||||
{
|
{
|
||||||
debug("cSatipTuner::%s(): entering", __FUNCTION__);
|
debug("cSatipTuner::%s(): entering", __FUNCTION__);
|
||||||
cTimeMs timeout(0);
|
cTimeMs timeout(eReConnectTimeoutMs);
|
||||||
// Increase priority
|
// Increase priority
|
||||||
SetPriority(-1);
|
SetPriority(-1);
|
||||||
// Do the thread loop
|
// Do the thread loop
|
||||||
@ -129,7 +129,7 @@ void cSatipTuner::Action(void)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Reconnect if necessary
|
// Reconnect if necessary
|
||||||
if (openedM && !tunedM && timeout.TimedOut()) {
|
if (openedM && timeout.TimedOut()) {
|
||||||
Disconnect();
|
Disconnect();
|
||||||
Connect();
|
Connect();
|
||||||
timeout.Set(eReConnectTimeoutMs);
|
timeout.Set(eReConnectTimeoutMs);
|
||||||
|
Loading…
Reference in New Issue
Block a user