diff src/director/user-directory.c @ 20986:410eacd7ad40

director: Code cleanup - added USER_IS_BEING_KILLED() macro
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 20 Oct 2016 16:46:31 +0300
parents 52a725c67e83
children 9d4039e2ae25
line wrap: on
line diff
--- a/src/director/user-directory.c	Thu Oct 20 16:41:23 2016 +0300
+++ b/src/director/user-directory.c	Thu Oct 20 16:46:31 2016 +0300
@@ -74,7 +74,7 @@
 	if (expire_timestamp > ioloop_time)
 		return TRUE;
 
-	if (user->kill_state != USER_KILL_STATE_NONE) {
+	if (USER_IS_BEING_KILLED(user)) {
 		/* don't free this user until the kill is finished */
 		return TRUE;
 	}