Move quit_vlc() up in syncplay.lua

This commit is contained in:
Etoh 2013-10-07 21:45:56 +01:00
parent 9d57b171fb
commit af3bf66499

View File

@ -108,6 +108,11 @@ if (port == nil or port < 1) then port = 4123 end
vlc.msg.info("Hosting Syncplay interface on port: "..port) vlc.msg.info("Hosting Syncplay interface on port: "..port)
function quit_vlc()
running = false
vlc.misc.quit()
end
function mightbewindows() function mightbewindows()
-- Used to detect whether the Operating System might be Windows. -- Used to detect whether the Operating System might be Windows.
sysos = os.getenv("OS") sysos = os.getenv("OS")
@ -350,11 +355,6 @@ function load_file (filepath)
return "load-file-attempted\n" return "load-file-attempted\n"
end end
function quit_vlc()
running = false
vlc.misc.quit()
end
function do_command ( command, argument) function do_command ( command, argument)
-- Processes all commands sent by Syncplay (see protocol, above). -- Processes all commands sent by Syncplay (see protocol, above).