From 543879eef70ed2a7ec14f5706c64c021652ad3ff Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 8 May 2014 13:27:43 +0300 Subject: [PATCH] fts-tika: Removed lib-http kludgy workaround, which is no longer needed. --- src/plugins/fts/fts-parser-tika.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/fts/fts-parser-tika.c b/src/plugins/fts/fts-parser-tika.c index e0322d0741..7bc1d2f205 100644 --- a/src/plugins/fts/fts-parser-tika.c +++ b/src/plugins/fts/fts-parser-tika.c @@ -27,7 +27,6 @@ struct tika_fts_parser { struct io *io; struct istream *payload; - bool http_req_finished; bool failed; }; @@ -104,7 +103,7 @@ fts_tika_parser_response(const struct http_response *response, parser->failed = TRUE; break; } - parser->http_req_finished = TRUE; + parser->http_req = NULL; io_loop_stop(current_ioloop); } @@ -205,7 +204,7 @@ static void fts_parser_tika_deinit(struct fts_parser *_parser) i_stream_unref(&parser->payload); /* FIXME: kludgy, http_req should be NULL here if we don't want to free it. requires lib-http changes. */ - if (parser->http_req != NULL && !parser->http_req_finished) + if (parser->http_req != NULL) http_client_request_abort(&parser->http_req); i_free(parser); } -- 2.47.3