changeset 27875:7754717d574c

ft: Fix an issue with re-setting xfer->watcher when there is no fd.
author Paul Aurich <paul@darkrain42.org>
date Tue, 11 Aug 2009 02:42:57 +0000
parents 6adbdd4b2963
children 4c6ea36672dc
files libpurple/ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/ft.c	Tue Aug 11 02:41:09 2009 +0000
+++ b/libpurple/ft.c	Tue Aug 11 02:42:57 2009 +0000
@@ -1123,7 +1123,7 @@
 	else /* if (type == PURPLE_XFER_RECEIVE) */
 		cond = PURPLE_INPUT_READ;
 
-	if (xfer->watcher == 0)
+	if (xfer->watcher == 0 && xfer->fd != -1)
 		xfer->watcher = purple_input_add(xfer->fd, cond, transfer_cb, xfer);
 
 	transfer_cb(xfer, 0, cond);