diff --git a/src/ClientInstance.cpp b/src/ClientInstance.cpp index 56573617..fcaccf9e 100644 --- a/src/ClientInstance.cpp +++ b/src/ClientInstance.cpp @@ -143,6 +143,10 @@ bool CVNSIClientInstance::Start(const std::string& hostname, m_abort = false; m_connectionLost = true; m_running = true; + + // Connect to the backend if possible. + TryReconnect(); + m_thread = std::thread([&] { Process(); }); kodi::addon::PVRMenuhook hook; diff --git a/src/Session.cpp b/src/Session.cpp index eefca5a2..b38864b6 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -117,6 +117,9 @@ bool cVNSISession::Login() m_server = serverName; m_version = serverVersion; m_protocol = static_cast(protocol); + kodi::Log(ADDON_LOG_INFO, + "Stored version of VDR backend: '%s', Version: '%s' with protocol version '%d'", + serverName, serverVersion, protocol); if (m_protocol < VNSI_MIN_PROTOCOLVERSION) throw "Protocol versions do not match";