changeset 22805:dbb45b0865be

lib-http: queue: Update the correct timout while dropping a request from the delay queue. The absolute request timeout rather than the delay timeout was updated for the removal of the request from the delay queue.
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Fri, 12 Jan 2018 21:03:41 +0100
parents 33a2b955ea19
children 9c5dc96d7c27
files src/lib-http/http-client-queue.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-http/http-client-queue.c	Tue Feb 06 15:50:19 2018 +0100
+++ b/src/lib-http/http-client-queue.c	Fri Jan 12 21:03:41 2018 +0100
@@ -667,7 +667,7 @@
 					timeout_remove(&queue->to_delayed);
 					if (count > 1) {
 						i_assert(reqs[1]->release_time.tv_sec > 0);
-						http_client_queue_set_request_timer(queue, &reqs[1]->release_time);
+						http_client_queue_set_delay_timer(queue, reqs[1]->release_time);
 					}
 				}
 			}