]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexer: Abort requests if indexer-worker disconnects unexpectedly
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 28 Sep 2021 21:21:17 +0000 (00:21 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 29 Sep 2021 12:14:38 +0000 (12:14 +0000)
src/indexer/worker-connection.c

index f3661e50ae5bb944e0a60e7c7a3e4ff31dbdf716..964865a6fccdda7b0c9602f303f835af29047d11 100644 (file)
@@ -48,7 +48,7 @@ void worker_connection_destroy(struct connection *conn)
        struct worker_connection *worker =
                container_of(conn, struct worker_connection, conn);
 
-       worker->request = NULL;
+       worker_connection_call_callback(worker, -1);
        i_free_and_null(worker->request_username);
        connection_deinit(conn);