Permalink
Browse files

Fixes https://github.com/raggi/net-http-batch/blob/4872c9ad245436e73b…

  • Loading branch information...
1 parent 881c433 commit d22945b179ac7d13970abc4819e32c5f0afcd054 @raggi raggi committed Apr 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/net/http/persistent.rb
@@ -450,6 +450,8 @@ def cleanup(generation, thread = Thread.current,
timeouts = thread[@timeout_key]
(0...generation).each do |old_generation|
+ next unless thread[generation_key]
+
conns = thread[generation_key].delete old_generation
conns.each_value do |conn|

0 comments on commit d22945b

Please sign in to comment.