[vlc-commits] cli.lua: handles ^D in the console (rvlc)

Rafaël Carré git at videolan.org
Wed Jun 15 23:13:02 CEST 2011


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Jun 14 23:55:16 2011 -0400| [2e3c00054e92207ff3c59cc1af763a0e0fa557a5] | committer: Rafaël Carré

cli.lua: handles ^D in the console (rvlc)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e3c00054e92207ff3c59cc1af763a0e0fa557a5
---

 share/lua/intf/cli.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 13a6af9..4662cbb 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -787,7 +787,7 @@ while not vlc.misc.should_die() do
     for _, client in pairs(read) do
         local input = client:recv(1000)
 
-        if input == "" -- the telnet client program has left
+        if input == nil or input == "" -- the telnet client program has left
             or ((client.type == host.client_type.net
                  or client.type == host.client_type.telnet)
                 and input == "\004") then



More information about the vlc-commits mailing list