dovecot-2.2: stats: Initial stats refresh timeout callback wasn'...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 16 11:54:51 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/d88af513a942
changeset: 18352:d88af513a942
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 16 13:53:54 2015 +0200
description:
stats: Initial stats refresh timeout callback wasn't set.
This broke after the ioloop change that caused stats_io_deactivate() not to
be called immediately anymore.

diffstat:

 src/plugins/stats/stats-plugin.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r b4dbe64c0032 -r d88af513a942 src/plugins/stats/stats-plugin.c
--- a/src/plugins/stats/stats-plugin.c	Fri Mar 13 20:08:34 2015 +0200
+++ b/src/plugins/stats/stats-plugin.c	Mon Mar 16 13:53:54 2015 +0200
@@ -432,6 +432,9 @@
 
 	MODULE_CONTEXT_SET(user, stats_user_module, suser);
 	stats_connection_connect(suser->stats_conn, user);
+	suser->to_stats_timeout =
+		timeout_add(suser->refresh_secs*1000,
+			    session_stats_refresh_timeout, user);
 }
 
 static struct mail_storage_hooks stats_mail_storage_hooks = {


More information about the dovecot-cvs mailing list