From: Timo Sirainen Date: Tue, 2 Mar 2021 15:10:03 +0000 (+0200) Subject: pop3: Change IO context earlier while shutting down X-Git-Tag: 2.3.15~305 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52d3c54afd059af1c52396f33f5edb9952bbf959;p=thirdparty%2Fdovecot%2Fcore.git pop3: Change IO context earlier while shutting down This didn't practically cause any issues currently, but the new behavior is more correct and future-proof. --- diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index 3b9ea58ef8..4b3585f616 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -840,11 +840,11 @@ static int client_output(struct client *client) void clients_destroy_all(void) { while (pop3_clients != NULL) { + mail_storage_service_io_activate_user(pop3_clients->service_user); if (pop3_clients->cmd == NULL) { client_send_line(pop3_clients, "-ERR [SYS/TEMP] Server shutting down."); } - mail_storage_service_io_activate_user(pop3_clients->service_user); client_destroy(pop3_clients, "Server shutting down."); } }