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:
parent
d780328362
commit
c77eca4354
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user