Only show retry messages after the first try

This commit is contained in:
Andre Leiradella 2017-10-14 13:44:24 +01:00
parent 5b7262d83f
commit aadc532b9c

View File

@ -3455,8 +3455,6 @@ static int cheevos_iterate(coro_t* coro)
for (K = 0; K < 5; K++)
{
RARCH_LOG("[CHEEVOS]: Making HTTP request, try %u of 5\n", K + 1);
JSON = NULL;
CONN = net_http_connection_new(URL, "GET", NULL);
@ -3512,8 +3510,12 @@ static int cheevos_iterate(coro_t* coro)
net_http_delete(HTTP);
net_http_connection_free(CONN);
if (K < 4)
RARCH_LOG("[CHEEVOS]: Retrying HTTP request: %u of 5\n", K + 2);
}
RARCH_LOG("[CHEEVOS]: Couldn't connect to server after 5 tries\n");
CORO_RET();
/**************************************************************************