Mercurial > pidgin.yaz
diff src/protocols/oscar/txqueue.c @ 8971:f831a38eb6ba
[gaim-migrate @ 9745]
AIM direct IM bug fixing and code clean-up from Tim
(for some reason I'm using "Tim" instead of "marv" more now)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 19 May 2004 03:26:52 +0000 |
parents | 92cbf9713795 |
children | 14bffb758b34 |
line wrap: on
line diff
--- a/src/protocols/oscar/txqueue.c Wed May 19 00:44:41 2004 +0000 +++ b/src/protocols/oscar/txqueue.c Wed May 19 03:26:52 2004 +0000 @@ -238,7 +238,11 @@ aim_rxcallback_t userfunc; while (count - wrote > 1024) { - wrote = wrote + aim_send(conn->fd, bs->data + bs->offset + wrote, 1024); + int ret; + + ret = aim_send(conn->fd, bs->data + bs->offset + wrote, 1024); + if (ret > 0) + wrote += ret; if ((userfunc=aim_callhandler(conn->sessv, conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_IMAGETRANSFER))) userfunc(conn->sessv, NULL, sn, count-wrote>1024 ? ((double)wrote / count) : 1); }