# HG changeset patch # User Paul Aurich # Date 1247071874 0 # Node ID d46ab8c52cc4980fee916b7494d143a306f7e8e1 # Parent 1ce607bc4dcea15601a9fd8c80f2fcdfe9c44b20 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 diff -r 1ce607bc4dce -r d46ab8c52cc4 libpurple/protocols/yahoo/libymsg.c --- 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;