diff src/protocols/oscar/rxqueue.c @ 11214:751de30689ef

[gaim-migrate @ 13346] Bug fix for OSCAR file transfer timeouts. Also, aim_get_command now accepts zero as a valid fd; this was necessary to get this fix to work in HEAD. committer: Tailor Script <tailor@pidgin.im>
author Jonathan Clark <ardentlygnarly>
date Tue, 09 Aug 2005 00:25:39 +0000
parents 361c9170d8af
children 7d31d61e6438
line wrap: on
line diff
--- a/src/protocols/oscar/rxqueue.c	Mon Aug 08 21:43:44 2005 +0000
+++ b/src/protocols/oscar/rxqueue.c	Tue Aug 09 00:25:39 2005 +0000
@@ -172,8 +172,10 @@
 	if (conn->fd == -1)
 		return -1; /* it's an aim_conn_close()'d connection */
 
-	if (conn->fd < 3) /* can happen when people abuse the interface */
+	/* If stdin is closed, then zero becomes a valid fd
+	if (conn->fd < 3)
 		return -1;
+	*/
 
 	if (conn->status & AIM_CONN_STATUS_INPROGRESS)
 		return aim_conn_completeconnect(sess, conn);