changeset 9086:c7db09d796b9 HEAD

imap: Don't send "Waiting for auth process" if it's the client that's waiting on AUTHENTICATE.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 May 2009 23:33:56 -0400
parents 36d823adb302
children 5a593a838f90
files src/imap-login/client-authenticate.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/client-authenticate.c	Mon May 25 22:34:38 2009 -0400
+++ b/src/imap-login/client-authenticate.c	Mon May 25 23:33:56 2009 -0400
@@ -70,6 +70,7 @@
 		sasl_server_auth_client_error(&client->common,
 					      "Authentication aborted");
 	} else {
+		client_set_auth_waiting(client);
 		auth_client_request_continue(client->common.auth_request, line);
 		io_remove(&client->io);
 
@@ -317,6 +318,9 @@
 		   to call client_destroy() in here. */
 		(void)o_stream_sendv(client->output, iov, 3);
 
+		if (client->to_auth_waiting != NULL)
+			timeout_remove(&client->to_auth_waiting);
+
 		i_assert(client->io == NULL);
 		client->io = io_add(client->common.fd, IO_READ,
 				    client_auth_input, client);