From 0c2e2911cbc71e9e3115437b23286d559b87a995 Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Mon, 10 Jan 2022 18:46:43 +0000 Subject: [PATCH] Try to connect to the backend prior to creating the addon instance --- src/ClientInstance.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;