# HG changeset patch # User Stu Tomlinson # Date 1249142380 0 # Node ID b6a9e2079d5047fd60d1b6aaa673e5d42b5bee6d # Parent c499a1e8ceff14102ec891b31b7ce5c774fa23b4 Use PURPLE_CONNECTION_ERROR_NETWORK_ERROR as the connection error reason, which will allow libpurple's auto-reconnect to handle the reconnection instead of forcing it in the prpl diff -r c499a1e8ceff -r b6a9e2079d50 libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Sat Aug 01 15:32:38 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sat Aug 01 15:59:40 2009 +0000 @@ -2035,7 +2035,6 @@ char *fullmsg; PurpleAccount *account = gc->account; PurpleConnectionError reason = PURPLE_CONNECTION_ERROR_OTHER_ERROR; - gboolean reconnect = FALSE; while (l) { struct yahoo_pair *pair = l->data; @@ -2086,8 +2085,8 @@ case 52: /* See #9660. As much as we know, reconnecting shouldn't hurt */ purple_debug_info("yahoo", "Got error 52, Set to autoreconnect\n"); - reconnect = TRUE; msg = g_strdup_printf(_("Unknown error")); + reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR; break; case 1013: msg = g_strdup(_("Invalid username")); @@ -2105,10 +2104,6 @@ purple_connection_error_reason(gc, reason, fullmsg); g_free(msg); g_free(fullmsg); - - /* In case of error 52, we reconnect */ - if(reconnect) - purple_account_connect(account); } static void yahoo_process_addbuddy(PurpleConnection *gc, struct yahoo_packet *pkt)