diff --git a/sorter.lic b/sorter.lic index a2c4aac5b..c65c7584d 100644 --- a/sorter.lic +++ b/sorter.lic @@ -118,7 +118,6 @@ class Sorter def cleanup_hook DownstreamHook.remove('sorter') end - end use_table = script.vars.include?('table') @@ -127,7 +126,7 @@ sorter_instance = Sorter.new(use_table) begin # Keep the script running in the background to monitor incoming lines. while true; sleep(0.1); end - + ensure sorter_instance.cleanup_hook # Clean up when the script exits. end \ No newline at end of file