]> git.sesse.net Git - vlc/commitdiff
Revert "lua: fix a busy loop (fix #4165)"
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 1 Feb 2011 21:53:03 +0000 (22:53 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 1 Feb 2011 21:53:03 +0000 (22:53 +0100)
This reverts commit a1b3978d280993a87033ee3de22b08d6dad9544f.

It doesn't fix anything and it breaks new connections

Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
share/lua/intf/modules/host.lua

index 7d0c4040a5cbfcdcef4b8d81fc5ddf8231998eca..4601b253c8d4dd9540f13317fc450b03035c3fb1 100644 (file)
@@ -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