lib/redis_failover/runner.rb in redis_failover-0.7.0 vs lib/redis_failover/runner.rb in redis_failover-0.8.0

- old
+ new

@@ -7,20 +7,13 @@ trap_signals node_manager_thread = Thread.new { @node_manager.start } node_manager_thread.join end - def self.node_manager - @node_manager - end - def self.trap_signals [:INT, :TERM].each do |signal| - previous_signal = trap(signal) do + trap(signal) do Util.logger.info('Shutting down ...') - if previous_signal && previous_signal.respond_to?(:call) - previous_signal.call - end @node_manager.shutdown exit(0) end end end