From 758744291c0f47f71a1d178a18c5f9b265577375 Mon Sep 17 00:00:00 2001 From: Maicon Kist Date: Wed, 3 Apr 2019 13:14:58 +0000 Subject: [PATCH] update --- lib/hydra_client.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hydra_client.cc b/lib/hydra_client.cc index d56a811..df57bf9 100644 --- a/lib/hydra_client.cc +++ b/lib/hydra_client.cc @@ -146,16 +146,19 @@ std::string hydra_client::check_connection(size_t max_tries) { size_t tries = 0; - size_t status; + int status; while ( (status = discover_server(s_client_host, s_server_host)) < 0 && (tries++ < max_tries)) { + std::cout << boost::format("status: %d -- tries: %d") % status % tries << std::endl; if (status < 0 && tries >= max_tries) return std::string(""); sleep(1); } + std::cout << boost::format("status: %d -- tries: %d") % status % tries << std::endl; + // Set message type std::string message = "{\"xvl_syn\":\"\"}"; // Send message and return acknowledgement