Wed, 19 Sep 2007 15:16:32 +0000
Check in purple_connection_error_reason that purple_connection_reason_is_fatal
== wants_to_die, and log a debug warning if not.
| libpurple/connection.c | file | annotate | diff | comparison | revisions |
--- 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;