changeset 24136:975efd786eb3

Use purple_connection_error_reason() when network disconnections are detected, so the subsequent reconnection can use the password if available. Hopefully fixes Fedora bug 453293
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 29 Sep 2008 01:22:39 +0000
parents e9094d59a4c2
children b682a74a2c69
files pidgin/gtkconn.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconn.c	Mon Sep 29 00:59:53 2008 +0000
+++ b/pidgin/gtkconn.c	Mon Sep 29 01:22:39 2008 +0000
@@ -208,7 +208,9 @@
 	while (l) {
 		PurpleAccount *a = (PurpleAccount*)l->data;
 		if (!purple_account_is_disconnected(a)) {
-			purple_account_disconnect(a);
+			purple_connection_error_reason(purple_account_get_connection(a),
+			                               PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+			                               _("Network disconnected"));
 		}
 		l = l->next;
 	}