lib/picky/rack/harakiri.rb in picky-0.3.0 vs lib/picky/rack/harakiri.rb in picky-0.9.0
- old
+ new
@@ -30,10 +30,10 @@
#
# If yes, kills itself (Unicorn will answer the request, honorably).
#
def harakiri
@requests = @requests + 1
- Process.kill(:QUIT, Process.pid) if @requests > @quit_after_requests
+ Process.kill(:QUIT, Process.pid) if @requests >= @quit_after_requests
end
end
end
\ No newline at end of file