Mercurial > pidgin.yaz
changeset 26232:47a1a94b479b
During logging out close p2p server if it is waiting for peer to connect
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Sat, 27 Sep 2008 15:36:16 +0000 |
parents | 775752f3e0db |
children | 68f14660843e |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Sat Sep 27 15:30:10 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Sat Sep 27 15:36:16 2008 +0000 @@ -3624,6 +3624,11 @@ purple_timeout_remove(yd->yahoo_p2p_timer); + /* close p2p server if it is waiting for a peer to connect */ + purple_input_remove(yd->yahoo_p2p_server_watcher); + close(yd->yahoo_local_p2p_server_fd); + yd->yahoo_local_p2p_server_fd = -1; + g_hash_table_destroy(yd->sms_carrier); g_hash_table_destroy(yd->peers); g_hash_table_destroy(yd->friends);