Commit 0875ed64 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

audioscrobbler: Fix socket leaks on error

parent 16ec76db
......@@ -854,6 +854,7 @@ static void *Run(void *data)
/* If connection fails, we assume we must handshake again */
HandleInterval(&next_exchange, &i_interval);
b_handshaked = false;
net_Close(i_post_socket);
continue;
}
......@@ -867,6 +868,7 @@ static void *Run(void *data)
if (i_net_ret <= 0)
{
/* if we get no answer, something went wrong : try again */
net_Close(i_post_socket);
continue;
}
......
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