Mercurial > dovecot > core-2.2
changeset 21745:b5311039c179
pop3: Add client.destroyed boolean
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 08 Mar 2017 17:09:12 -0500 |
parents | 38e0c1b1b1c1 |
children | 574ad44a7c80 |
files | src/pop3/pop3-client.c src/pop3/pop3-client.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/pop3-client.c Mon Mar 13 14:23:11 2017 +0200 +++ b/src/pop3/pop3-client.c Wed Mar 08 17:09:12 2017 -0500 @@ -583,6 +583,10 @@ static void client_default_destroy(struct client *client, const char *reason) { + i_assert(!client->destroyed); + + client->destroyed = TRUE; + if (client->seen_change_count > 0) (void)client_update_mails(client);
--- a/src/pop3/pop3-client.h Mon Mar 13 14:23:11 2017 +0200 +++ b/src/pop3/pop3-client.h Wed Mar 08 17:09:12 2017 -0500 @@ -96,6 +96,7 @@ /* Module-specific contexts. */ ARRAY(union pop3_module_context *) module_contexts; + unsigned int destroyed:1; unsigned int disconnected:1; unsigned int deleted:1; unsigned int waiting_input:1;