diff options
author | Eric Wong <e@80x24.org> | 2013-11-07 08:40:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2013-11-07 08:43:44 +0000 |
commit | 07e5a1d7e8624e57d640af1d641c7ca51a948ecd (patch) | |
tree | 3ce37fe9a11da1b5fe87779364c6b9facfb7a001 /lib/yahns/stream_file.rb | |
parent | a79a6d8775171ad5cceda9bb3a77946ba60e26ce (diff) | |
download | yahns-07e5a1d7e8624e57d640af1d641c7ca51a948ecd.tar.gz |
The first argument of the old __expire_for method was completely unused in all but one invocation of it, so it is not worth it. This also simplifies the code a bit too.
Diffstat (limited to 'lib/yahns/stream_file.rb')
-rw-r--r-- | lib/yahns/stream_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/stream_file.rb b/lib/yahns/stream_file.rb index 03dab45..bcca0d6 100644 --- a/lib/yahns/stream_file.rb +++ b/lib/yahns/stream_file.rb @@ -24,7 +24,7 @@ class Yahns::StreamFile # :nodoc: rescue Errno::EMFILE, Errno::ENFILE raise if retried retried = true - Thread.current[:yahns_fdmap].desperate_expire_for(nil, 5) + Thread.current[:yahns_fdmap].desperate_expire(5) sleep(1) retry end |