Commit 2477116b authored by Pierre Ynard's avatar Pierre Ynard

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

This reverts commit a1b3978d280993a87033ee3de22b08d6dad9544f.

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