Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/flap_connection.c @ 31083:7a41eb334a64
oscar: Add useful object debugging for #5927.
Won't actually fix anything.
Refs #5927
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 30 Oct 2010 06:00:50 +0000 |
parents | 11c54d781835 |
children | 04576947c4e0 |
comparison
equal
deleted
inserted
replaced
31081:361f32af5147 | 31083:7a41eb334a64 |
---|---|
433 OscarData *od; | 433 OscarData *od; |
434 PurpleAccount *account; | 434 PurpleAccount *account; |
435 aim_rxcallback_t userfunc; | 435 aim_rxcallback_t userfunc; |
436 | 436 |
437 conn = data; | 437 conn = data; |
438 /* Explicitly added for debugging #5927. Don't re-order this, only | |
439 * consider removing it. | |
440 */ | |
441 purple_debug_info("oscar", "Destroying FLAP connection %p\n", conn); | |
442 | |
438 od = conn->od; | 443 od = conn->od; |
439 account = purple_connection_get_account(od->gc); | 444 account = purple_connection_get_account(od->gc); |
440 | 445 |
441 purple_debug_info("oscar", "Destroying oscar connection of " | 446 purple_debug_info("oscar", "Destroying oscar connection (%p) of " |
442 "type 0x%04hx. Disconnect reason is %d\n", | 447 "type 0x%04hx. Disconnect reason is %d\n", conn, |
443 conn->type, conn->disconnect_reason); | 448 conn->type, conn->disconnect_reason); |
444 | 449 |
445 od->oscar_connections = g_slist_remove(od->oscar_connections, conn); | 450 od->oscar_connections = g_slist_remove(od->oscar_connections, conn); |
446 | 451 |
447 if ((userfunc = aim_callhandler(od, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNERR))) | 452 if ((userfunc = aim_callhandler(od, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNERR))) |
573 if (conn->destroy_timeout != 0) | 578 if (conn->destroy_timeout != 0) |
574 /* Already taken care of */ | 579 /* Already taken care of */ |
575 return; | 580 return; |
576 | 581 |
577 purple_debug_info("oscar", "Scheduling destruction of FLAP " | 582 purple_debug_info("oscar", "Scheduling destruction of FLAP " |
578 "connection of type 0x%04hx\n", conn->type); | 583 "connection %p of type 0x%04hx\n", conn, conn->type); |
579 conn->disconnect_reason = reason; | 584 conn->disconnect_reason = reason; |
580 g_free(conn->error_message); | 585 g_free(conn->error_message); |
581 conn->error_message = g_strdup(error_message); | 586 conn->error_message = g_strdup(error_message); |
582 conn->destroy_timeout = purple_timeout_add(0, flap_connection_destroy_cb, conn); | 587 conn->destroy_timeout = purple_timeout_add(0, flap_connection_destroy_cb, conn); |
583 } | 588 } |