Skip to content

Commit

Permalink
Try to connect to the backend prior to creating the addon instance
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Jan 10, 2022
1 parent ee67443 commit 0c2e291
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ClientInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c2e291

Please sign in to comment.