[vlc-commits] luatelnet: fix ending connections

Pierre Ynard git at videolan.org
Tue Feb 1 23:26:05 CET 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Feb  1 23:25:14 2011 +0100| [90000056f6c533170b92dd37fe1655e25f85c317] | committer: Pierre Ynard

luatelnet: fix ending connections

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

 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