Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/libymsg.h @ 31530:86598f5d7ebd
Yahoo: Fix a crash that happens when the PurpleAccount disconnects after
purple_network_listen() is called in yahoo_send_p2p_pkt(), but before the
callback for purple_network_listen() is called. This solution isn't perfect--
it will almost certainly fall flat on its face if yahoo_send_p2p_packet() is
called twice in a row--but doesn't make matters worse. Fixes #12432.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | hanzz@soc.pidgin.im |
---|---|
date | Thu, 30 Dec 2010 01:22:52 +0000 |
parents | 47ff9247b95a |
children | fa88dc1dcabb f33200f71cc3 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.h Thu Dec 30 01:06:03 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.h Thu Dec 30 01:22:52 2010 +0000 @@ -28,6 +28,7 @@ #include "circbuffer.h" #include "cmds.h" #include "prpl.h" +#include "network.h" #define YAHOO_PAGER_HOST_REQ_URL "http://vcs1.msg.yahoo.com/capacity" #define YAHOO_PAGER_HOST_FALLBACK "scsa.msg.yahoo.com" @@ -243,6 +244,7 @@ GSList *url_datas; GHashTable *xfer_peer_idstring_map;/* Hey, i dont know, but putting this HashTable next to friends gives a run time fault... */ GSList *cookies;/* contains all cookies, including _y and _t */ + PurpleNetworkListenData *listen_data; /** * We may receive a list15 in multiple packets with no prior warning as to how many we'll be getting;