Commit 389de0d2 authored by brendan's avatar brendan
Browse files

Committed part of Karl's patch to prevent data from being resent on

EAGAIN. The second part of it I'm not sure about... I think maybe the
callers need to be fixed to check self->error instead of the return
value.

svn path=/icecast/trunk/libshout/; revision=9530
parent 96ce483f
......@@ -1017,7 +1017,7 @@ static int try_write (shout_t *self, const void *data, size_t len)
if (sock_recoverable (sock_error()))
{
self->error = SHOUTERR_BUSY;
return 0;
return pos;
}
self->error = SHOUTERR_SOCKET;
return ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment