Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
2ff217cb
Commit
2ff217cb
authored
May 08, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to previous fix - use the right variable!
svn path=/trunk/icecast/; revision=3291
parent
2225738a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/source.c
src/source.c
+5
-1
No files found.
src/source.c
View file @
2ff217cb
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment