Mercurial > dovecot > core-2.2
changeset 9867:6168a479c54b HEAD
auth: Don't notify lib-master when primary master connection was destroyed, since it wasn't created through it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 04 Sep 2009 14:17:03 -0400 |
parents | 1d2d0aa8e313 |
children | 63d2755c9211 |
files | src/auth/auth-master-connection.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-master-connection.c Fri Sep 04 13:47:57 2009 -0400 +++ b/src/auth/auth-master-connection.c Fri Sep 04 14:17:03 2009 -0400 @@ -488,6 +488,7 @@ struct auth_master_connection *conn = *_conn; struct auth_master_connection *const *masters; unsigned int i, count; + bool service_connection = conn->fd != MASTER_AUTH_FD; *_conn = NULL; if (conn->destroyed) @@ -514,7 +515,8 @@ conn->fd = -1; } - master_service_client_connection_destroyed(master_service); + if (service_connection) + master_service_client_connection_destroyed(master_service); auth_master_connection_unref(&conn); }