# HG changeset patch # User Will Thompson # Date 1197893399 0 # Node ID 717176f247ab08f600ce009f9c488ecb64980637 # Parent 45d1e229faddc90369f4557dc1fc51771ffafb9b 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...) diff -r 45d1e229fadd -r 717176f247ab libpurple/account.c --- a/libpurple/account.c Mon Dec 17 12:09:19 2007 +0000 +++ b/libpurple/account.c Mon Dec 17 12:09:59 2007 +0000 @@ -331,6 +331,12 @@ 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);