lib/dispatch-rider/subscriber.rb in dispatch-rider-1.3.1 vs lib/dispatch-rider/subscriber.rb in dispatch-rider-1.3.2

- old
+ new

@@ -41,19 +41,19 @@ def register_quit_trap Signal.trap("QUIT") do # signal number: 3 logger.info "Received SIGQUIT, stopping demultiplexer" - demultiplexer.stop("Got SIGQUIT") + demultiplexer.stop(reason: "Got SIGQUIT") end end def register_term_trap Signal.trap("TERM") do # signal number: 15 logger.info "Received SIGTERM, stopping demultiplexer" - demultiplexer.stop("Got SIGTERM") + demultiplexer.stop(reason: "Got SIGTERM") end end def register_int_trap @already_interrupted = false @@ -61,10 +61,10 @@ if @already_interrupted logger.info "Received SIGINT second time, aborting" exit(0) else logger.info "Received SIGINT first time, stopping demultiplexer" - demultiplexer.stop("Got SIGINT") + demultiplexer.stop(reason: "Got SIGINT") end @already_interrupted = true end end