From a3ea140dbfff50582e8cae305a57afe553163055 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Wed, 4 Apr 2018 10:25:59 +0200 Subject: [PATCH] lib-http: test-http-payload - Only switch ioloop for progress timeout when it is running. --- src/lib-http/test-http-payload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 7be07a7557..2f83844f43 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -690,7 +690,8 @@ static void test_client_switch_ioloop(void) { struct test_client_request *tcreq; - to_client_progress = io_loop_move_timeout(&to_client_progress); + if (to_client_progress != NULL) + to_client_progress = io_loop_move_timeout(&to_client_progress); for (tcreq = client_requests; tcreq != NULL; tcreq = tcreq->next) { -- 2.47.3