1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

Really retry forever when connection.retries = 0

This feature has been broken since zas backported it from Links 0.99pre3 2003-04-20.
This commit is contained in:
Miciah Dashiel Butler Masters 2007-09-26 16:18:24 +00:00
parent 916ba6783a
commit a197bde2f6

View File

@ -767,7 +767,7 @@ retry_connection(struct connection *conn, enum connection_state state)
set_connection_state(conn, state);
interrupt_connection(conn);
if (conn->uri->post || !max_tries || ++conn->tries >= max_tries) {
if (conn->uri->post || (max_tries && ++conn->tries >= max_tries)) {
done_connection(conn);
register_check_queue();
} else {