changeset 20617:1aed896c25c1

lib: connection_disconnect() now resets last_input If we reconnect, its value would otherwise be wrong.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 10 Aug 2016 17:37:53 +0300
parents d59ab03e5636
children 199918a54c38
files src/lib/connection.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/connection.c	Wed Aug 10 17:11:13 2016 +0300
+++ b/src/lib/connection.c	Wed Aug 10 17:37:53 2016 +0300
@@ -291,6 +291,7 @@
 
 void connection_disconnect(struct connection *conn)
 {
+	conn->last_input = 0;
 	if (conn->to != NULL)
 		timeout_remove(&conn->to);
 	if (conn->io != NULL)