dovecot-2.0: Added missing master_service_client_connection_dest...

dovecot at dovecot.org dovecot at dovecot.org
Sat May 23 00:40:56 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/04cade277134
changeset: 9349:04cade277134
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 22 17:29:13 2009 -0400
description:
Added missing master_service_client_connection_destroyed() calls.

diffstat:

4 files changed, 8 insertions(+), 2 deletions(-)
src/anvil/anvil-connection.c   |    3 +++
src/config/config-connection.c |    3 +++
src/imap/imap-client.c         |    2 +-
src/pop3/pop3-client.c         |    2 +-

diffs (64 lines):

diff -r 0c587f108916 -r 04cade277134 src/anvil/anvil-connection.c
--- a/src/anvil/anvil-connection.c	Fri May 22 17:26:27 2009 -0400
+++ b/src/anvil/anvil-connection.c	Fri May 22 17:29:13 2009 -0400
@@ -4,6 +4,7 @@
 #include "llist.h"
 #include "istream.h"
 #include "ostream.h"
+#include "master-service.h"
 #include "master-interface.h"
 #include "connect-limit.h"
 #include "anvil-connection.h"
@@ -156,6 +157,8 @@ void anvil_connection_destroy(struct anv
 	if (close(conn->fd) < 0)
 		i_error("close(anvil conn) failed: %m");
 	i_free(conn);
+
+	master_service_client_connection_destroyed(master_service);
 }
 
 void anvil_connections_destroy_all(void)
diff -r 0c587f108916 -r 04cade277134 src/config/config-connection.c
--- a/src/config/config-connection.c	Fri May 22 17:26:27 2009 -0400
+++ b/src/config/config-connection.c	Fri May 22 17:29:13 2009 -0400
@@ -5,6 +5,7 @@
 #include "istream.h"
 #include "ostream.h"
 #include "settings-parser.h"
+#include "master-service.h"
 #include "config-request.h"
 #include "config-connection.h"
 
@@ -157,6 +158,8 @@ void config_connection_destroy(struct co
 	if (close(conn->fd) < 0)
 		i_error("close(config conn) failed: %m");
 	i_free(conn);
+
+	master_service_client_connection_destroyed(master_service);
 }
 
 void config_connections_destroy_all(void)
diff -r 0c587f108916 -r 04cade277134 src/imap/imap-client.c
--- a/src/imap/imap-client.c	Fri May 22 17:26:27 2009 -0400
+++ b/src/imap/imap-client.c	Fri May 22 17:29:13 2009 -0400
@@ -219,7 +219,7 @@ void client_destroy(struct client *clien
 
 	/* quit the program */
 	my_client = NULL;
-	master_service_stop(master_service);
+	master_service_client_connection_destroyed(master_service);
 }
 
 void client_disconnect(struct client *client, const char *reason)
diff -r 0c587f108916 -r 04cade277134 src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c	Fri May 22 17:26:27 2009 -0400
+++ b/src/pop3/pop3-client.c	Fri May 22 17:29:13 2009 -0400
@@ -404,7 +404,7 @@ void client_destroy(struct client *clien
 
 	/* quit the program */
 	my_client = NULL;
-	master_service_stop(master_service);
+	master_service_client_connection_destroyed(master_service);
 }
 
 void client_disconnect(struct client *client, const char *reason)


More information about the dovecot-cvs mailing list