diff --git a/script-watch.lic b/script-watch.lic index 204de0dbc0..47dd23af31 100644 --- a/script-watch.lic +++ b/script-watch.lic @@ -32,7 +32,6 @@ class ScriptWatch # hide myself @ignored_scripts.push(Script.current.name) - @script_list = [] @script_output = '' _respond("") _respond("") @@ -46,8 +45,6 @@ class ScriptWatch def output_scripts() temp_list = @display_hidden ? Script.running + Script.hidden : Script.running - @script_list = temp_list - temp_output = temp_list.select { |s| !(@ignored_scripts.include?(s.name)) } .collect { |s| output = "" @@ -82,8 +79,8 @@ class ScriptWatch end output - } - .join(@script_separator) + } + .join(@script_separator) # attempt to short circuit to keep from sending unneeded xml, still update every 300s (5 min) return if @script_output == temp_output && ((Time.now - @last_update) < 300)