From: Timo Sirainen Date: Wed, 10 Aug 2011 12:16:44 +0000 (+0300) Subject: indexer: Fix to handling disconnected worker. X-Git-Tag: 2.1.alpha1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fdc192eecebb462cf72d2aaeacea6a30000d0ac;p=thirdparty%2Fdovecot%2Fcore.git indexer: Fix to handling disconnected worker. --- diff --git a/src/indexer/worker-connection.c b/src/indexer/worker-connection.c index 445ce77ecb..a81491d35f 100644 --- a/src/indexer/worker-connection.c +++ b/src/indexer/worker-connection.c @@ -74,7 +74,7 @@ static void worker_connection_disconnect(struct worker_connection *conn) for (i = 0; i < count; i++) { void *const *contextp = array_idx(&conn->request_contexts, - aqueue_idx(conn->request_queue, i)); + aqueue_idx(conn->request_queue, 0)); void *context = *contextp; aqueue_delete_tail(conn->request_queue);