# HG changeset patch # User Paul Aurich # Date 1259387465 0 # Node ID 61cd675b73df44e0a3155c06c817d83fab3660e6 # Parent 31497213393c8e671ebd410d3ed36f01490ef93a jabber: Don't print "Extra content at the end of the document". This has been suggested by several people. It's papering over a possible race issue (as pointed out by wjt), but since everyone reports this as the cause of their connection problems, this is probably net better. diff -r 31497213393c -r 61cd675b73df libpurple/protocols/jabber/parser.c --- a/libpurple/protocols/jabber/parser.c Fri Nov 27 20:52:01 2009 +0000 +++ b/libpurple/protocols/jabber/parser.c Sat Nov 28 05:51:05 2009 +0000 @@ -152,6 +152,15 @@ */ return; + if (error->level == XML_ERR_FATAL && error->message != NULL + && strcmp(error->message, "Extra content at the end of the document\n") == 0) + /* + * This is probably more annoying than the vcard-temp error; it occurs + * because we disconnect in most cases without waiting for the receiving + * (limitations of libpurple) + */ + return; + purple_debug_error("jabber", "XML parser error for JabberStream %p: " "Domain %i, code %i, level %i: %s", js,