From 601bd7b924a4297e699a86a07cd4b83ba01f556c Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Wed, 6 Feb 2019 23:10:22 +0100 Subject: [PATCH] [PVR] Ignore very first 'server not reachable' notification. --- xbmc/pvr/addons/PVRClients.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xbmc/pvr/addons/PVRClients.cpp b/xbmc/pvr/addons/PVRClients.cpp index 34d7f54ef5feb..36dd2717d8b99 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