Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/libymsg.c @ 27499:d46ab8c52cc4
Fix two errors when my p2p server connection times out.
(08:49:31) yahoo: yahoo p2p server timeout, peer failed to connect(08:49:31) GLib: g_source_remove: assertion `tag > 0' failed
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 08 Jul 2009 16:51:14 +0000 |
parents | 09772222714a |
children | d4cfd179203b |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c Wed Jul 08 06:06:38 2009 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Wed Jul 08 16:51:14 2009 +0000 @@ -2239,7 +2239,8 @@ if(p2p_data->source >= 0) close(p2p_data->source); - purple_input_remove(p2p_data->input_event); + if (p2p_data->input_event > 0) + purple_input_remove(p2p_data->input_event); g_free(p2p_data->host_ip); g_free(p2p_data->host_username); g_free(p2p_data); @@ -2459,7 +2460,7 @@ yd = p2p_data->gc->proto_data; - purple_debug_warning("yahoo","yahoo p2p server timeout, peer failed to connect"); + purple_debug_warning("yahoo","yahoo p2p server timeout, peer failed to connect\n"); yahoo_p2p_disconnect_destroy_data(data); purple_input_remove(yd->yahoo_p2p_server_watcher); yd->yahoo_p2p_server_watcher = 0;