diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-04 17:16:04 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-04 17:16:04 -0700 |
commit | eadaec56aef29360f5b18abd3d2683c835d3725a (patch) | |
tree | 4e497d7d1211880b97cdbe9a7d1b6ddc3d8ce77d /lib | |
parent | 7664144957b4916c76ec52132eaaa552a348de28 (diff) | |
download | raindrops-eadaec56aef29360f5b18abd3d2683c835d3725a.tar.gz |
If stats.decr_writing never fails, really (or something is seriously wrong (like memory corruption) and the ensure block wouldn't fire anyways).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/raindrops/middleware.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb index a1503bd..b2a422d 100644 --- a/lib/raindrops/middleware.rb +++ b/lib/raindrops/middleware.rb @@ -50,8 +50,7 @@ class Middleware < ::Struct.new(:app, :stats, :path, :tcp, :unix) # the Rack server should call this after #each (usually ensure-d) def close stats.decr_writing - ensure - app.close if app.respond_to?(:close) + app.close if app.respond_to?(:close) end def stats_response |