mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Don't let persistent_timeout be nil
I got some errors in a project that uses Puma because persistent_timeout doesn't get set, and arithmetic with nil explodes.
This commit is contained in:
parent
7cdb33ff6f
commit
aa2e6025f6
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module Puma
|
|||
@thread = nil
|
||||
@thread_pool = nil
|
||||
|
||||
@persistent_timeout = options[:persistent_timeout]
|
||||
@persistent_timeout = options.fetch(:persistent_timeout, PERSISTENT_TIMEOUT)
|
||||
|
||||
@binder = Binder.new(events)
|
||||
@own_binder = true
|
||||
|
|
Loading…
Reference in a new issue