changeset 22508:d89f498fc00c

director: Delay calling state_change_callback() after user kick is finished Otherwise it can get into recursive loop and cause problems.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 14 Sep 2017 13:02:40 +0300
parents 633b90217c62
children a9e00067e9e3
files src/director/director.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director.c	Thu Sep 14 12:42:13 2017 +0300
+++ b/src/director/director.c	Thu Sep 14 13:02:40 2017 +0300
@@ -854,7 +854,7 @@
 	i_assert(dir->users_moving_count > 0);
 	dir->users_moving_count--;
 
-	dir->state_change_callback(dir);
+	director_set_state_changed(dir);
 }
 
 static void