lib/nanoc/cli/commands/compile.rb in nanoc-4.6.2 vs lib/nanoc/cli/commands/compile.rb in nanoc-4.6.3
- old
+ new
@@ -445,9 +445,10 @@
ensure
teardown_listeners
end
def teardown_listeners
+ return unless @listeners
@listeners.reverse_each(&:stop_safely)
end
def reps
site.compiler.reps