im.pidgin.cpw.resiak.disconnectreason: 0d8e7c642905805be5e7d1c5774de8d2d14b4584

resiak at soc.pidgin.im resiak at soc.pidgin.im
Wed Oct 3 13:55:59 EDT 2007


revision:            0d8e7c642905805be5e7d1c5774de8d2d14b4584
date:                2007-09-19T15:16:32
author:              resiak at soc.pidgin.im
branch:              im.pidgin.cpw.resiak.disconnectreason
changelog:
Check in purple_connection_error_reason that purple_connection_reason_is_fatal
== wants_to_die, and log a debug warning if not.

manifest:
format_version "1"

new_manifest [ab9960f012523a51ec5f24bc6620e36793df7cc6]

old_revision [fe41e4957bb2f3682032854cf00ce9de99c2631d]

patch "libpurple/connection.c"
 from [54035c86fa011ee27210d3e662b715f023bc0bbb]
   to [2a16922b3e0036275c55d93522697d4226d07972]
-------------- next part --------------
#
#
# patch "libpurple/connection.c"
#  from [54035c86fa011ee27210d3e662b715f023bc0bbb]
#    to [2a16922b3e0036275c55d93522697d4226d07972]
#
============================================================
--- libpurple/connection.c	54035c86fa011ee27210d3e662b715f023bc0bbb
+++ libpurple/connection.c	2a16922b3e0036275c55d93522697d4226d07972
@@ -497,6 +497,7 @@ purple_connection_error_reason (PurpleCo
                                 const char *description)
 {
 	PurpleConnectionUiOps *ops;
+	gboolean fatal;
 
 	g_return_if_fail(gc   != NULL);
 
@@ -507,6 +508,13 @@ purple_connection_error_reason (PurpleCo
 
 	g_assert (reason < PURPLE_NUM_REASONS);
 
+	/* This should probably be removed at some point */
+	fatal = purple_connection_reason_is_fatal (reason);
+	if (fatal != gc->wants_to_die)
+		purple_debug_warning ("connection",
+			"reason %u is %sfatal but wants_to_die is %u",
+			reason, (fatal ? "" : "not "), gc->wants_to_die);
+
 	/* If we've already got one error, we don't need any more */
 	if (gc->disconnect_timeout)
 		return;


More information about the Commits mailing list