diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-15 10:07:18 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-15 10:07:18 +0000 |
commit | 0fbe11085ec265ccce33995e453fb3c1b60b578e (patch) | |
tree | 0e52601165ef107192c766ff29e9d75bc2d1e583 /lib/rinda | |
parent | 4730c7fa114402fc3ed665877703889ac7464fd3 (diff) | |
download | ruby-0fbe11085ec265ccce33995e453fb3c1b60b578e.tar.gz ruby-0fbe11085ec265ccce33995e453fb3c1b60b578e.tar.xz ruby-0fbe11085ec265ccce33995e453fb3c1b60b578e.zip |
raise RequestExpiredError if timeout
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rinda')
-rw-r--r-- | lib/rinda/tuplespace.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rinda/tuplespace.rb b/lib/rinda/tuplespace.rb index 4bd4a42af..e538f6b13 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) |