Commit fe3ca6c0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: do not check for should_die (always false here)

parent 33cc9972
......@@ -788,7 +788,7 @@ h:listen( config.hosts or config.host or "*console" )
password = config.password or "admin"
--[[ The main loop ]]
while not vlc.misc.should_die() do
while true do
local write, read = h:accept_and_select()
for _, client in pairs(write) do
......
......@@ -30,11 +30,11 @@ dumpmeta.lua: dump a file's meta data on stdout/stderr
local item
repeat
item = vlc.input.item()
until (item and item:is_preparsed()) or vlc.misc.should_die()
until (item and item:is_preparsed())
-- preparsing doesn't always provide all the information we want (like duration)
repeat
until item:stats()["demux_read_bytes"] > 0 or vlc.misc.should_die()
until item:stats()["demux_read_bytes"] > 0
vlc.msg.info("name: "..item:name())
vlc.msg.info("uri: "..vlc.strings.decode_uri(item:uri()))
......
......@@ -38,7 +38,7 @@ Example use:
--or h:listen( { "localhost:4212", "*console" } )
-- The main loop
while not vlc.misc.should_die() do
while true do
-- accept new connections and select active clients
local write, read = h:accept_and_select()
......
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