From aced3754409ca77ac08438a658218bf8260ef505 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Wed, 26 Sep 2007 16:18:24 +0000 Subject: [PATCH] Really retry forever when connection.retries = 0 This feature has been broken since zas backported it from Links 0.99pre3 2003-04-20. --- src/network/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/connection.c b/src/network/connection.c index 14c4fa66..8c737f63 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -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 {