diff pidgin/gtkconn.c @ 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 a85fcc0c0248
children 785db7300ef2
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;
 	}