summaryrefslogtreecommitdiff
path: root/lib/rinda/tuplespace.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-15 10:07:18 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-15 10:07:18 +0000
commitc77eca435434e3d9bacf8cdbe2b3cfa91c9792ac (patch)
treea59c32bd9942cd20eabdda4205e4546e988a5beb /lib/rinda/tuplespace.rb
parentd7803283624d3f75fe327ee68fb83a34e14906bf (diff)
downloadruby-c77eca435434e3d9bacf8cdbe2b3cfa91c9792ac.tar.gz
raise RequestExpiredError if timeout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rinda/tuplespace.rb')
-rw-r--r--lib/rinda/tuplespace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rinda/tuplespace.rb b/lib/rinda/tuplespace.rb
index 4bd4a42af5..e538f6b137 100644
--- a/lib/rinda/tuplespace.rb
+++ b/lib/rinda/tuplespace.rb
@@ -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)