# HG changeset patch # User Christian Hammond # Date 1060849181 0 # Node ID 4aa3b1cec52b21f827c5cec39b2f81bb5a033a45 # Parent aabb0b331ac846e86df332f4d51a3089e898af97 [gaim-migrate @ 6977] Destroying the connection after requesting a password works great when we just pop up the dialog waiting for a callback, but UIs that actually wait for the input for the dialog will set the password, try to connect (which it won't, since it's connected), and then disconnect. Not what we want. committer: Tailor Script diff -r aabb0b331ac8 -r 4aa3b1cec52b src/connection.c --- a/src/connection.c Thu Aug 14 04:52:49 2003 +0000 +++ b/src/connection.c Thu Aug 14 08:19:41 2003 +0000 @@ -137,6 +137,7 @@ const gchar *username = gaim_account_get_username(account); gaim_debug(GAIM_DEBUG_INFO, "connection", "Requesting password\n"); + gaim_connection_destroy(gc); escaped = g_markup_escape_text(username, strlen(username)); primary = g_strdup_printf(_("Enter password for %s"), escaped); gaim_request_input(gc, NULL, primary, NULL, NULL, FALSE, TRUE, @@ -144,7 +145,6 @@ _("Cancel"), NULL, account); g_free(primary); g_free(escaped); - gaim_connection_destroy(gc); return; }