From af3bf66499f0ddab3a7046b4232b978d477a74ae Mon Sep 17 00:00:00 2001 From: Etoh Date: Mon, 7 Oct 2013 21:45:56 +0100 Subject: [PATCH] Move quit_vlc() up in syncplay.lua --- resources/lua/intf/syncplay.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lua/intf/syncplay.lua b/resources/lua/intf/syncplay.lua index 2e083c8..ecea484 100644 --- a/resources/lua/intf/syncplay.lua +++ b/resources/lua/intf/syncplay.lua @@ -108,6 +108,11 @@ if (port == nil or port < 1) then port = 4123 end vlc.msg.info("Hosting Syncplay interface on port: "..port) +function quit_vlc() + running = false + vlc.misc.quit() +end + function mightbewindows() -- Used to detect whether the Operating System might be Windows. sysos = os.getenv("OS") @@ -350,11 +355,6 @@ function load_file (filepath) return "load-file-attempted\n" end -function quit_vlc() - running = false - vlc.misc.quit() -end - function do_command ( command, argument) -- Processes all commands sent by Syncplay (see protocol, above).