comparison src/ft.c @ 8351:ffa642240fc1

[gaim-migrate @ 9075] marv is incredibly patient, waiting a long time for this to go in you should all be using Jabber for file transfer anyway, but if you're still stuck in the stone age, now you can transfer files via IRC committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 27 Feb 2004 01:45:26 +0000
parents cf84056fed27
children e4087b5c0627
comparison
equal deleted inserted replaced
8350:0018b8118e77 8351:ffa642240fc1
510 } 510 }
511 } 511 }
512 else { 512 else {
513 size_t s = MIN(gaim_xfer_get_bytes_remaining(xfer), 4096); 513 size_t s = MIN(gaim_xfer_get_bytes_remaining(xfer), 4096);
514 514
515 /* this is so the prpl can keep the connection open
516 if it needs to for some odd reason. */
517 if (s == 0) {
518 if(xfer->watcher) {
519 gaim_input_remove(xfer->watcher);
520 xfer->watcher = 0;
521 }
522 return;
523 }
524
515 buffer = g_malloc0(s); 525 buffer = g_malloc0(s);
516 526
517 fread(buffer, 1, s, xfer->dest_fp); 527 fread(buffer, 1, s, xfer->dest_fp);
518 528
519 /* Write as much as we're allowed to. */ 529 /* Write as much as we're allowed to. */