Commit c4e65e38 authored by Pierre Ynard's avatar Pierre Ynard

Revert "lua: fix a busy loop (fix #4165)"

This reverts commit a1b3978d.

It doesn't fix anything and it breaks new connections
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent fcf580b6
......@@ -235,7 +235,6 @@ function host()
filter_client( pollfds, status.read, vlc.net.POLLIN )
filter_client( pollfds, status.password, vlc.net.POLLIN )
filter_client( pollfds, status.write, vlc.net.POLLOUT )
if listeners.tcp then
for _, listener in pairs(listeners.tcp.list) do
for _, fd in pairs({listener:fds()}) do
......@@ -251,10 +250,9 @@ function host()
for _, client in pairs(clients) do
if pollfds[client:fd()] == vlc.net.POLLOUT then
table.insert(wclients,client)
elseif pollfds[client:fd()] == vlc.net.POLLIN then
end
if pollfds[client:fd()] == vlc.net.POLLIN then
table.insert(rclients,client)
else
del_client( client )
end
end
if listeners.tcp then
......
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