changeset 14119:54147aa1ffe6

[gaim-migrate @ 16753] Whatever, toc doesn't compile anyway. Any objections to remove it? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 14 Aug 2006 08:24:30 +0000
parents 87ff682bdf5f
children d812efcea547
files src/protocols/toc/toc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}