1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Minor fix to previous fix - use the right variable!

svn path=/trunk/icecast/; revision=3291
This commit is contained in:
Michael Smith 2002-05-08 14:02:02 +00:00
parent 2225738aba
commit 2ff217cb18

View File

@ -220,6 +220,9 @@ void *source_main(void *arg)
if (sbytes >= 0) {
client->con->sent_bytes += sbytes;
if(sbytes != bytes) {
/* We didn't send the entire buffer. Leave it for
* the moment, handle it in the next iteration.
*/
client->pos += sbytes;
refbuf_queue_insert(&client->queue, abuf);
data_done = 1;
@ -255,7 +258,8 @@ void *source_main(void *arg)
sbytes = sock_write_bytes(client->con->sock, refbuf->data, refbuf->len);
if (sbytes >= 0) {
client->con->sent_bytes += sbytes;
if(sbytes != bytes) {
if(sbytes != refbuf->len) {
/* Didn't send the entire buffer, queue it */
client->pos = sbytes;
refbuf_addref(refbuf);
refbuf_queue_insert(&client->queue, abuf);