mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Minor fix to previous fix - use the right variable!
svn path=/trunk/icecast/; revision=3291
This commit is contained in:
parent
2225738aba
commit
2ff217cb18
@ -220,6 +220,9 @@ void *source_main(void *arg)
|
|||||||
if (sbytes >= 0) {
|
if (sbytes >= 0) {
|
||||||
client->con->sent_bytes += sbytes;
|
client->con->sent_bytes += sbytes;
|
||||||
if(sbytes != bytes) {
|
if(sbytes != bytes) {
|
||||||
|
/* We didn't send the entire buffer. Leave it for
|
||||||
|
* the moment, handle it in the next iteration.
|
||||||
|
*/
|
||||||
client->pos += sbytes;
|
client->pos += sbytes;
|
||||||
refbuf_queue_insert(&client->queue, abuf);
|
refbuf_queue_insert(&client->queue, abuf);
|
||||||
data_done = 1;
|
data_done = 1;
|
||||||
@ -255,7 +258,8 @@ void *source_main(void *arg)
|
|||||||
sbytes = sock_write_bytes(client->con->sock, refbuf->data, refbuf->len);
|
sbytes = sock_write_bytes(client->con->sock, refbuf->data, refbuf->len);
|
||||||
if (sbytes >= 0) {
|
if (sbytes >= 0) {
|
||||||
client->con->sent_bytes += sbytes;
|
client->con->sent_bytes += sbytes;
|
||||||
if(sbytes != bytes) {
|
if(sbytes != refbuf->len) {
|
||||||
|
/* Didn't send the entire buffer, queue it */
|
||||||
client->pos = sbytes;
|
client->pos = sbytes;
|
||||||
refbuf_addref(refbuf);
|
refbuf_addref(refbuf);
|
||||||
refbuf_queue_insert(&client->queue, abuf);
|
refbuf_queue_insert(&client->queue, abuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user