From f4dd02a9aa97682600e6502c55abb50681b36bfd Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Mon, 2 Mar 2015 20:08:21 +0200 Subject: [PATCH] Robustify the server discovery. --- HISTORY | 4 ++++ msearch.c | 3 +++ satip.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 6ea4717..b8eb8c6 100644 --- a/HISTORY +++ b/HISTORY @@ -120,3 +120,7 @@ VDR Plugin 'satip' Revision History - Fixed memory deallocation errors. - Cleaned up all scan-build warnings. - Refactored the frontend handling. + +2015-XX-XX: Version 2.2.1 + +- Robustify the server discovery. diff --git a/msearch.c b/msearch.c index ab1fbad..bb8e9a6 100644 --- a/msearch.c +++ b/msearch.c @@ -45,6 +45,9 @@ void cSatipMsearch::Probe(void) cSatipPoller::GetInstance()->Register(*this); registeredM = true; } + // Send two queries with one second interval + Write(bcastAddressS, reinterpret_cast(bcastMessageS), strlen(bcastMessageS)); + cCondWait::SleepMs(1000); Write(bcastAddressS, reinterpret_cast(bcastMessageS), strlen(bcastMessageS)); } diff --git a/satip.c b/satip.c index b34da79..6b58e72 100644 --- a/satip.c +++ b/satip.c @@ -27,7 +27,7 @@ #define GITVERSION "" #endif - const char VERSION[] = "2.2.0" GITVERSION; + const char VERSION[] = "2.2.1" GITVERSION; static const char DESCRIPTION[] = trNOOP("SAT>IP Devices"); class cPluginSatip : public cPlugin {