lib/nanoc/cli/commands/compile.rb in nanoc-4.4.4 vs lib/nanoc/cli/commands/compile.rb in nanoc-4.4.5

- old
+ new

@@ -418,15 +418,15 @@ protected def default_listener_classes [ + Nanoc::CLI::Commands::Compile::StackProfProfiler, Nanoc::CLI::Commands::Compile::DiffGenerator, Nanoc::CLI::Commands::Compile::DebugPrinter, Nanoc::CLI::Commands::Compile::TimingRecorder, Nanoc::CLI::Commands::Compile::FileActionPrinter, - Nanoc::CLI::Commands::Compile::StackProfProfiler, ] end def setup_listeners @listeners = @@ -447,10 +447,10 @@ ensure teardown_listeners end def teardown_listeners - @listeners.each(&:stop_safely) + @listeners.reverse_each(&:stop_safely) end def reps site.compiler.reps end