Commit 8e49d55a authored by Pierre Ynard's avatar Pierre Ynard

luarc: end remotely closed connections

Fix a busy loop and socket leak. Thanks to Santiago Gimeno for
pointing it out (Debian bug #607869)
parent c4e65e38
......@@ -695,9 +695,8 @@ while not vlc.misc.should_die() do
if string.match(input,"\n$") then
client.buffer = string.gsub(client.buffer..input,"\r?\n$","")
done = true
elseif client.buffer == ""
and ((client.type == host.client_type.stdio and input == "")
or (client.type == host.client_type.net and input == "\004")) then
elseif input == ""
or (client.type == host.client_type.net and input == "\004") then
-- Caught a ^D
client.buffer = "quit"
done = true
......
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