aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/webrick/utils.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb
index d9c39360ee..eab2375968 100644
--- a/lib/webrick/utils.rb
+++ b/lib/webrick/utils.rb
@@ -175,7 +175,9 @@ module WEBrick
Thread.start{
while true
now = Time.now
- @timeout_info.dup.each{|thread, ary|
+ @timeout_info.keys.each{|thread|
+ ary = @timeout_info[thread]
+ next unless ary
ary.dup.each{|info|
time, exception = *info
interrupt(thread, info.object_id, exception) if time < now