im.pidgin.pidgin: 7a1ce8ae9c2809b39d1f436d94070523f18993fb

resiak at soc.pidgin.im resiak at soc.pidgin.im
Mon Dec 17 07:15:50 EST 2007


-----------------------------------------------------------------
Revision: 7a1ce8ae9c2809b39d1f436d94070523f18993fb
Ancestor: 144eb45526482e0f97ca1deca742f41309005db7
Author: resiak at soc.pidgin.im
Date: 2007-12-17T12:09:59
Branch: im.pidgin.pidgin

Modified files:
        libpurple/account.c

ChangeLog: 

Don't bother making transient connection errors persist across a restart.
(No-one cares that their Jabber account was knocked offline because of a DNS
failure yesterday...)

-------------- next part --------------
============================================================
--- libpurple/account.c	c974587f9df6546d4c33810388a5b10ccfd69f09
+++ libpurple/account.c	8facb0795e3dede33bb2224c62aa8afb6045c464
@@ -331,6 +331,12 @@ current_error_to_xmlnode(PurpleConnectio
 	if(err == NULL)
 		return node;
 
+	/* It doesn't make sense to have transient errors persist across a
+	 * restart.
+	 */
+	if(!purple_connection_error_is_fatal (err->type))
+		return node;
+
 	child = xmlnode_new_child(node, "type");
 	snprintf(type_str, sizeof(type_str), "%u", err->type);
 	xmlnode_insert_data(child, type_str, -1);


More information about the Commits mailing list