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:
parent
d780328362
commit
c77eca4354
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue