Mercurial > dovecot > core-2.2
changeset 2502:e628e0ab8924 HEAD
Deinitialize pop3 commands if connection is closed unexpectedly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 28 Aug 2004 12:34:01 +0300 |
parents | b7eec64e0735 |
children | 2946fa696774 |
files | src/pop3/client.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3/client.c Sat Aug 28 12:32:30 2004 +0300 +++ b/src/pop3/client.c Sat Aug 28 12:34:01 2004 +0300 @@ -171,6 +171,12 @@ void client_destroy(struct client *client) { + if (client->cmd != NULL) { + /* deinitialize command */ + i_stream_close(client->input); + o_stream_close(client->output); + client->cmd(client); + } if (client->mailbox != NULL) mailbox_close(client->mailbox); mail_storage_destroy(client->storage);