# HG changeset patch # User Mark Doliner # Date 1155543870 0 # Node ID 54147aa1ffe69e1fe658d1e45d4ba07ecc9ace75 # Parent 87ff682bdf5f676b72af45407b97d09504e369f8 [gaim-migrate @ 16753] Whatever, toc doesn't compile anyway. Any objections to remove it? committer: Tailor Script diff -r 87ff682bdf5f -r 54147aa1ffe6 src/protocols/toc/toc.c --- a/src/protocols/toc/toc.c Mon Aug 14 08:23:26 2006 +0000 +++ b/src/protocols/toc/toc.c Mon Aug 14 08:24:30 2006 +0000 @@ -160,8 +160,9 @@ struct sockaddr_in name; socklen_t namelen; - if (!g_list_find(gaim_connections_get_all(), data)) { - close(source); + if (!GAIM_CONNECTION_IS_VALID(gc)) { + if (source >= 0) + close(source); return; }