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:
parent
f7e1e58dcb
commit
148143e974
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue