changeset 9854:e389922bdea7

[gaim-migrate @ 10733] You betta chiggaty check yoself befo you wiggaty wreck yoself. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Aug 2004 22:08:53 +0000
parents 3d2cc7c50508
children b23e6f9c4d2e
files src/connection.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/connection.c	Tue Aug 24 21:19:24 2004 +0000
+++ b/src/connection.c	Tue Aug 24 22:08:53 2004 +0000
@@ -273,13 +273,12 @@
 gaim_connection_disconnect_cb(gpointer data)
 {
 	GaimAccount *account = data;
+	GaimConnection *gc = gaim_account_get_connection(account);
 
 	if (!gaim_account_get_remember_password(account))
 		gaim_account_set_password(account,NULL);
 
-	GaimConnection *gc = gaim_account_get_connection(account);
-
-	if(gc)
+	if (gc)
 		gaim_connection_disconnect(gc);
 
 	return FALSE;