dovecot-2.0: lib-auth: Make sure reconnection timeout if removed...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 19 05:30:58 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/082bd896e448
changeset: 10762:082bd896e448
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 19 05:30:56 2010 +0200
description:
lib-auth: Make sure reconnection timeout if removed after getting connected.

diffstat:

 src/lib-auth/auth-server-connection.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r a16d3b54b9bb -r 082bd896e448 src/lib-auth/auth-server-connection.c
--- a/src/lib-auth/auth-server-connection.c	Fri Feb 19 05:17:57 2010 +0200
+++ b/src/lib-auth/auth-server-connection.c	Fri Feb 19 05:30:56 2010 +0200
@@ -349,7 +349,6 @@
 
 static void auth_server_reconnect_timeout(struct auth_server_connection *conn)
 {
-	timeout_remove(&conn->to);
 	(void)auth_server_connection_connect(conn);
 }
 
@@ -394,6 +393,8 @@
 	i_assert(conn->fd == -1);
 
 	conn->last_connect = ioloop_time;
+	if (conn->to != NULL)
+		timeout_remove(&conn->to);
 
 	/* max. 1 second wait here. */
 	fd = net_connect_unix_with_retries(conn->client->auth_socket_path,


More information about the dovecot-cvs mailing list