From b138532421188df7eea97f6a1047e466c140e221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kulesza?= Date: Thu, 21 Feb 2019 20:12:24 +0100 Subject: [PATCH] fix syntax so it is interpreted correctly --- lib/puma/cluster.rb | 2 +- lib/puma/launcher.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puma/cluster.rb b/lib/puma/cluster.rb index 92920934..8338b21b 100644 --- a/lib/puma/cluster.rb +++ b/lib/puma/cluster.rb @@ -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 diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index cbc83693..b06558a8 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -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!"