# HG changeset patch # User Christian Hammond # Date 1044394616 0 # Node ID dda0fbba1c46c8f1c07be37ea97501ce165af0d3 # Parent 4fe661860577b2b9a1676de2c8b3885f12e28fbb [gaim-migrate @ 4799] Canceling early shouldn't be problematic. committer: Tailor Script diff -r 4fe661860577 -r dda0fbba1c46 src/ft.c --- a/src/ft.c Tue Feb 04 20:30:17 2003 +0000 +++ b/src/ft.c Tue Feb 04 21:36:56 2003 +0000 @@ -583,10 +583,13 @@ if (xfer->ops.end != NULL) xfer->ops.end(xfer); - gaim_input_remove(xfer->watcher); - xfer->watcher = 0; + if (xfer->watcher != 0) { + gaim_input_remove(xfer->watcher); + xfer->watcher = 0; + } - close(xfer->fd); + if (xfer->fd != 0) + close(xfer->fd); if (xfer->dest_fp != NULL) { fclose(xfer->dest_fp); @@ -608,10 +611,13 @@ if (xfer->ops.cancel != NULL) xfer->ops.cancel(xfer); - gaim_input_remove(xfer->watcher); - xfer->watcher = 0; + if (xfer->watcher != 0) { + gaim_input_remove(xfer->watcher); + xfer->watcher = 0; + } - close(xfer->fd); + if (xfer->fd != 0) + close(xfer->fd); if (xfer->dest_fp != NULL) { fclose(xfer->dest_fp);