From: Stephan Bosch Date: Sun, 11 Sep 2016 20:10:44 +0000 (+0200) Subject: lib-http: test-http-payload: Fixed problem in nested ioloop test. X-Git-Tag: 2.3.0.rc1~3026 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0873f750d44a45e027c5f770f1619977ad676f18;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-payload: Fixed problem in nested ioloop test. The running ioloop was not always stopped properly at the end of the test. This caused an assert failure in the running ioloop. --- diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 62ebdc4f51..88de427b70 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -1159,6 +1159,11 @@ static void test_client_echo_continue(void) ioloop_nested_first, ioloop_nested_last, ioloop_nested_depth); } ioloop_nested_first = ioloop_nested_last = 0; + + if (client_files_first >= count) { + io_loop_stop(current_ioloop); + return; + } } }