# HG changeset patch # User Daniel Atallah # Date 1126671102 0 # Node ID cda814bad7f866324f79fd780855e4e2799eb15d # Parent 5fc015909164d9378188764a40835af4f19e7c11 [gaim-migrate @ 13797] Disconnect when registration fails. committer: Tailor Script diff -r 5fc015909164 -r cda814bad7f8 src/protocols/gg/gg.c --- a/src/protocols/gg/gg.c Wed Sep 14 03:41:32 2005 +0000 +++ b/src/protocols/gg/gg.c Wed Sep 14 04:11:42 2005 +0000 @@ -1422,7 +1422,7 @@ /* static void ggp_register_user(GaimAccount *account) {{{ */ static void ggp_register_user(GaimAccount *account) { - GaimConnection *gc; + GaimConnection *gc = gaim_account_get_connection(account); GaimRequestFields *fields; GaimRequestFieldGroup *group; GaimRequestField *field; @@ -1435,14 +1435,11 @@ gaim_debug_info("gg", "token: requested.\n"); if ((req = gg_token(0)) == NULL) { - gaim_notify_error(account, _("Token Error"), - _("Unable to fetch the token.\n"), NULL); + gaim_connection_error(gc, _("Token Error : Unable to fetch the token.\n")); return; } t = req->data; - gc = gaim_account_get_connection(account); - info = g_new0(GGPInfo, 1); gc->proto_data = info;