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

Don't call .stop on a server that doesn't exist

This commit is contained in:
Michael Pearson 2018-09-24 14:16:33 +10:00
parent f7e1e58dcb
commit 148143e974

View file

@ -24,7 +24,7 @@ module Puma
end
def stop
@server.stop false
@server.stop(false) if @server
end
def halt
@ -34,7 +34,7 @@ module Puma
def stop_blocked
log "- Gracefully stopping, waiting for requests to finish"
@control.stop(true) if @control
@server.stop(true)
@server.stop(true) if @server
end
def jruby_daemon?