Mercurial > pidgin
diff src/account.c @ 5930:03f1d6cd784c
[gaim-migrate @ 6370]
Added debug statements (probably temporary), and fixed a small disconnect
bug.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Fri, 20 Jun 2003 05:41:39 +0000 |
| parents | 6c22d37c6a3c |
| children | d0320de18feb |
line wrap: on
line diff
--- a/src/account.c Fri Jun 20 05:40:49 2003 +0000 +++ b/src/account.c Fri Jun 20 05:41:39 2003 +0000 @@ -143,9 +143,15 @@ { g_return_if_fail(account != NULL); + gaim_debug(GAIM_DEBUG_INFO, "account", + "Destroying account %p\n", account); + if (account->gc != NULL) gaim_connection_destroy(account->gc); + gaim_debug(GAIM_DEBUG_INFO, "account", + "Continuing to destroy account %p\n", account); + if (account->username != NULL) g_free(account->username); if (account->alias != NULL) g_free(account->alias); if (account->password != NULL) g_free(account->password); @@ -168,6 +174,9 @@ gc = gaim_connection_new(account); + gaim_debug(GAIM_DEBUG_INFO, "account", + "Connecting to account %p. gc = %p\n", account, gc); + gaim_connection_connect(gc); return gc; @@ -181,6 +190,9 @@ g_return_if_fail(account != NULL); g_return_if_fail(gaim_account_is_connected(account)); + gaim_debug(GAIM_DEBUG_INFO, "account", + "Disconnecting account %p\n", account); + gc = gaim_account_get_connection(account); gaim_account_set_connection(account, NULL); @@ -487,7 +499,7 @@ g_return_val_if_fail(account != NULL, FALSE); return (account->gc != NULL && - gaim_connection_get_state(account->gc) == GAIM_CONNECTED); + gaim_connection_get_state(account->gc) != GAIM_DISCONNECTED); } const char *
