Commit 2e3c0005 authored by Rafaël Carré's avatar Rafaël Carré

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

parent 317f0780
......@@ -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
......
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