mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
0240c469b7
commit
aced375440
@ -767,7 +767,7 @@ retry_connection(struct connection *conn, enum connection_state state)
|
|||||||
set_connection_state(conn, state);
|
set_connection_state(conn, state);
|
||||||
|
|
||||||
interrupt_connection(conn);
|
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);
|
done_connection(conn);
|
||||||
register_check_queue();
|
register_check_queue();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user