From: Timo Sirainen Date: Thu, 8 May 2014 10:27:43 +0000 (+0300) Subject: fts-tika: Removed lib-http kludgy workaround, which is no longer needed. X-Git-Tag: 2.2.13.rc1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=543879eef70ed2a7ec14f5706c64c021652ad3ff;p=thirdparty%2Fdovecot%2Fcore.git fts-tika: Removed lib-http kludgy workaround, which is no longer needed. --- 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); }