pidgin: a1edb87a: ft: Fix an issue with re-setting xfer->w...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Aug 10 22:46:18 EDT 2009


-----------------------------------------------------------------
Revision: a1edb87af0bd03766bea82b60fd1d5e1294ee3b6
Ancestor: 864b50e56d376132989db9f91db76555f9d76b42
Author: darkrain42 at pidgin.im
Date: 2009-08-11T02:42:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a1edb87af0bd03766bea82b60fd1d5e1294ee3b6

Modified files:
        libpurple/ft.c

ChangeLog: 

ft: Fix an issue with re-setting xfer->watcher when there is no fd.

-------------- next part --------------
============================================================
--- libpurple/ft.c	be22627fce1aee64b6129bec41e4db10e0d1a5e1
+++ libpurple/ft.c	48a79ff9dc60eff2e893ab7c1a21d0999afa5369
@@ -1123,7 +1123,7 @@ purple_xfer_ui_ready(PurpleXfer *xfer)
 	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);


More information about the Commits mailing list