Commit c63fb384 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

audioscrobbler: fix stream error handling

parent 369d7605
...@@ -555,7 +555,7 @@ static int Handshake(intf_thread_t *p_this) ...@@ -555,7 +555,7 @@ static int Handshake(intf_thread_t *p_this)
/* read answer */ /* read answer */
i_ret = stream_Read(p_stream, p_buffer, sizeof(p_buffer) - 1); i_ret = stream_Read(p_stream, p_buffer, sizeof(p_buffer) - 1);
if (i_ret == 0) if (i_ret <= 0)
{ {
stream_Delete(p_stream); stream_Delete(p_stream);
return VLC_EGENERIC; return VLC_EGENERIC;
......
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