indexer-client.c (dovecot-2.3.16) | : | indexer-client.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 142 | skipping to change at line 142 | |||
return -1; | return -1; | |||
} | } | |||
return 1; | return 1; | |||
} | } | |||
void indexer_client_status_callback(int percentage, void *context) | void indexer_client_status_callback(int percentage, void *context) | |||
{ | { | |||
struct indexer_client_request *ctx = context; | struct indexer_client_request *ctx = context; | |||
/* we are in deinit already, or the client has disconnected */ | /* we are in deinit already, or the client has disconnected */ | |||
if (ctx->client == NULL) | if (ctx->client->conn.output == NULL) | |||
return; | return; | |||
T_BEGIN { | T_BEGIN { | |||
o_stream_nsend_str(ctx->client->conn.output, | o_stream_nsend_str(ctx->client->conn.output, | |||
t_strdup_printf("%u\t%d\n", ctx->tag, percentage)); | t_strdup_printf("%u\t%d\n", ctx->tag, percentage)); | |||
} T_END; | } T_END; | |||
if (percentage < 0 || percentage == 100) { | if (percentage < 0 || percentage == 100) { | |||
indexer_client_unref(ctx->client); | indexer_client_unref(ctx->client); | |||
i_free(ctx); | i_free(ctx); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |