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

Relaxed the server cleanup timeout.

This commit is contained in:
Rolf Ahrenberg 2015-03-26 00:28:17 +02:00
parent fbf7977853
commit bd6774ba28
2 changed files with 6 additions and 5 deletions

View File

@ -142,7 +142,7 @@ void cSatipDiscover::Action(void)
probeIntervalM.Set(eProbeIntervalMs); probeIntervalM.Set(eProbeIntervalMs);
msearchM.Probe(); msearchM.Probe();
mutexM.Lock(); mutexM.Lock();
serversM.Cleanup(eProbeIntervalMs * 2); serversM.Cleanup(eCleanupTimeoutMs);
mutexM.Unlock(); mutexM.Unlock();
} }
mutexM.Lock(); mutexM.Lock();

View File

@ -40,10 +40,11 @@ class cSatipDiscoverServers : public cList<cSatipDiscoverServer> {
class cSatipDiscover : public cThread, public cSatipDiscoverIf { class cSatipDiscover : public cThread, public cSatipDiscoverIf {
private: private:
enum { enum {
eSleepTimeoutMs = 500, // in milliseconds eSleepTimeoutMs = 500, // in milliseconds
eConnectTimeoutMs = 1500, // in milliseconds eConnectTimeoutMs = 1500, // in milliseconds
eProbeTimeoutMs = 2000, // in milliseconds eProbeTimeoutMs = 2000, // in milliseconds
eProbeIntervalMs = 60000 // in milliseconds eProbeIntervalMs = 60000, // in milliseconds
eCleanupTimeoutMs = 124000 // in milliseoonds
}; };
static cSatipDiscover *instanceS; static cSatipDiscover *instanceS;
static size_t DataCallback(char *ptrP, size_t sizeP, size_t nmembP, void *dataP); static size_t DataCallback(char *ptrP, size_t sizeP, size_t nmembP, void *dataP);