# HG changeset patch # User Will Thompson # Date 1190214992 0 # Node ID ec3471ab96d60bc05f04630a7539e8b8f0d290c6 # Parent c26b7aff4e9605d55c84098b5f268fd791261864 Check in purple_connection_error_reason that purple_connection_reason_is_fatal == wants_to_die, and log a debug warning if not. diff -r c26b7aff4e96 -r ec3471ab96d6 libpurple/connection.c --- a/libpurple/connection.c Wed Sep 19 15:06:26 2007 +0000 +++ b/libpurple/connection.c Wed Sep 19 15:16:32 2007 +0000 @@ -497,6 +497,7 @@ const char *description) { PurpleConnectionUiOps *ops; + gboolean fatal; g_return_if_fail(gc != NULL); @@ -507,6 +508,13 @@ 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;