1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

fix syntax so it is interpreted correctly

This commit is contained in:
Michał Kulesza 2019-02-21 20:12:24 +01:00
parent 58d9824920
commit b138532421
2 changed files with 2 additions and 2 deletions

View file

@ -393,7 +393,7 @@ module Puma
stop_workers
stop
raise SignalException, "SIGTERM" if @options[:raise_exception_on_sigterm]
raise(SignalException, "SIGTERM") if @options[:raise_exception_on_sigterm]
end
end
end

View file

@ -397,7 +397,7 @@ module Puma
Signal.trap "SIGTERM" do
graceful_stop
raise SignalException, "SIGTERM" if @options[:raise_exception_on_sigterm]
raise(SignalException, "SIGTERM") if @options[:raise_exception_on_sigterm]
end
rescue Exception
log "*** SIGTERM not implemented, signal based gracefully stopping unavailable!"