WS: only display the "connecting" status on -v

This commit is contained in:
Přemysl Eric Janouch 2015-04-08 19:51:57 +02:00
parent fd4177157e
commit 808393c537
1 changed files with 6 additions and 3 deletions

View File

@ -962,9 +962,12 @@ backend_ws_establish_connection (struct app_context *ctx,
else
real_host = buf;
char *address = format_host_port_pair (real_host, port);
print_status ("connecting to %s...", address);
free (address);
if (ctx->verbose)
{
char *address = format_host_port_pair (real_host, port);
print_status ("connecting to %s...", address);
free (address);
}
if (!connect (sockfd, gai_iter->ai_addr, gai_iter->ai_addrlen))
break;