aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2019-02-06 23:10:22 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2019-02-06 23:10:22 +0100
commit601bd7b924a4297e699a86a07cd4b83ba01f556c (patch)
tree47e0def0f58a2440812556c34608d90242a9258d
parent7001c652f6485df17a322727257733cabdd4091d (diff)
[PVR] Ignore very first 'server not reachable' notification.
-rw-r--r--xbmc/pvr/addons/PVRClients.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/pvr/addons/PVRClients.cpp b/xbmc/pvr/addons/PVRClients.cpp
index 34d7f54ef5..36dd2717d8 100644
--- a/xbmc/pvr/addons/PVRClients.cpp
+++ b/xbmc/pvr/addons/PVRClients.cpp
@@ -596,6 +596,13 @@ void CPVRClients::ConnectionStateChange(
{
case PVR_CONNECTION_STATE_SERVER_UNREACHABLE:
iMsg = 35505; // Server is unreachable
+ if (client->GetPreviousConnectionState() == PVR_CONNECTION_STATE_UNKNOWN ||
+ client->GetPreviousConnectionState() == PVR_CONNECTION_STATE_CONNECTING)
+ {
+ // Make our users happy. There were so many complaints about this notification because their TV backend
+ // was not up quick enough after Kodi start. So, ignore the very first 'server not reachable' notification.
+ bNotify = false;
+ }
break;
case PVR_CONNECTION_STATE_SERVER_MISMATCH:
iMsg = 35506; // Server does not respond properly