[vlc-commits] luatelnet: fix ending connections

Pierre Ynard git at videolan.org
Wed Feb 2 00:56:31 CET 2011


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Feb  1 23:25:14 2011 +0100| [0f68ddf86521776c5fb87149bd0b9a0e941f2b7b] | committer: Pierre Ynard

luatelnet: fix ending connections
(cherry picked from commit 90000056f6c533170b92dd37fe1655e25f85c317)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=0f68ddf86521776c5fb87149bd0b9a0e941f2b7b
---

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

diff --git a/share/lua/intf/telnet.lua b/share/lua/intf/telnet.lua
index 2e22ac1..900e14e 100644
--- a/share/lua/intf/telnet.lua
+++ b/share/lua/intf/telnet.lua
@@ -184,14 +184,14 @@ while not vlc.misc.should_die() do
         local str = client.cmds .. client:recv(1000)
 
         if not str then -- the telnet client program has left
-            client.cmds = "quit"
+            client.cmds = "quit\n"
         elseif string.match(str,"\n") then
             client.cmds = str
         elseif client.buffer == ""
            and ((client.type == host.client_type.stdio and str == "")
            or  (client.type == host.client_type.net and str == "\004")) then
             -- Caught a ^D
-            client.cmds = "quit"
+            client.cmds = "quit\n"
         end
 
         client.buffer = ""



More information about the vlc-commits mailing list