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

satip: fix non-sensical logic (fixes #19634)

parent 2c07a5d9
......@@ -410,7 +410,7 @@ static void satip_teardown(void *data) {
/* Some SATIP servers send a few empty extra bytes after TEARDOWN.
* Try to read them, to avoid a TCP socket reset */
while ((len = recv(sys->tcp_sock, discard_buf, sizeof(discard_buf), 0) > 0));
while (recv(sys->tcp_sock, discard_buf, sizeof(discard_buf), 0) > 0);
/* Extra sleep for compatibility with some satip servers, that
* can't handle new sessions right after teardown */
......
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