Skip to content

Commit

Permalink
client check_connection with max_retries
Browse files Browse the repository at this point in the history
  • Loading branch information
maiconkist committed Apr 24, 2019
1 parent be5c90c commit 63de543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hydra_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ 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))
Expand Down

0 comments on commit 63de543

Please sign in to comment.