summaryrefslogtreecommitdiff
path: root/lib/rinda/tuplespace.rb
diff options
context:
space:
mode:
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 ba494aa..ee2bef1 100644
--- a/lib/rinda/tuplespace.rb
+++ b/lib/rinda/tuplespace.rb
@@ -491,7 +491,7 @@ module Rinda
port.push(entry.value) if port
@bag.delete(entry)
notify_event('take', entry.value)
- return entry.value
+ return port ? nil : entry.value
end
raise RequestExpiredError if template.expired?
@@ -506,7 +506,7 @@ module Rinda
port.push(entry.value) if port
@bag.delete(entry)
notify_event('take', entry.value)
- return entry.value
+ return port ? nil : entry.value
end
template.wait
end