Skip to content

Commit

Permalink
queue_close.rb - fix 'warning: instance variable @closed not initiali…
Browse files Browse the repository at this point in the history
…zed' on Ruby 2.2
  • Loading branch information
MSP-Greg committed Oct 25, 2020
1 parent 992a407 commit 0e804b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puma/queue_close.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def closed?
@closed
end
def push(object)
@closed ||= false
raise ClosedQueueError if @closed
super
end
Expand Down

0 comments on commit 0e804b2

Please sign in to comment.