1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

raise RequestExpiredError if timeout

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2004-02-15 10:07:18 +00:00
parent d780328362
commit c77eca4354

View file

@ -259,7 +259,7 @@ module Rinda
notify_event('take', entry.value)
return entry.value
end
return nil if template.expired?
raise RequestExpiredError if template.expired?
begin
@take_waiter.push(template)
@ -287,7 +287,7 @@ module Rinda
synchronize do
entry = @bag.find(template)
return entry.value if entry
return nil if template.expired?
raise RequestExpiredError if template.expired?
begin
@read_waiter.push(template)