# HG changeset patch # User Paul Aurich # Date 1270962929 0 # Node ID 708c35476cff56564896412f90e036dc608b846f # Parent b4cd989f524f247dd326a2ef0d8faab6937ec6f3 yahoo: Add a FIXME. Refs #10346, #10746. I think the cause of those crashes is that two calls to purple_network_listen() can be outstanding (yahoo_send_p2p_pkt only checks if something is /currently listening/, not if a listen attempt is in progress). It might also be that listen attempts aren't cancelled when an account signs off (unlike purple_proxy_connects). I could also be entirely off-base. diff -r b4cd989f524f -r 708c35476cff libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Sat Apr 10 23:16:47 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sun Apr 11 05:15:29 2010 +0000 @@ -2763,6 +2763,7 @@ p2p_data->connection_type = YAHOO_P2P_WE_ARE_SERVER; p2p_data->source = -1; + /* FIXME: Shouldn't this deal with the PurpleNetworkListenData* */ purple_network_listen(YAHOO_PAGER_PORT_P2P, SOCK_STREAM, yahoo_p2p_server_listen_cb, p2p_data); g_free(base64_ip);