Commit 0b57a337 authored by Michael Smith's avatar Michael Smith

Fix for a couple of nasty bugs that could result in clients being incorrectly

dropped under some circumstances. Thanks to Ricardo Galli for finding this.

svn path=/trunk/icecast/; revision=4268
parent 1fb972cf
......@@ -79,7 +79,7 @@ int format_generic_write_buf_to_client(format_plugin_t *format,
ret = sock_write_bytes(client->con->sock, buf, len);
if(ret < 0) {
if(sock_recoverable(ret)) {
if(sock_recoverable(sock_error())) {
DEBUG1("Client had recoverable error %ld", ret);
ret = 0;
}
......
......@@ -173,7 +173,7 @@ static int format_mp3_write_buf_to_client(format_plugin_t *self,
}
if(ret < 0) {
if(sock_recoverable(ret)) {
if(sock_recoverable(sock_error())) {
DEBUG1("Client had recoverable error %ld", ret);
ret = 0;
}
......
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