changeset 6468:4aa3b1cec52b

[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 <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 14 Aug 2003 08:19:41 +0000
parents aabb0b331ac8
children 0dd2f025b913
files src/connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}