Browse files

Merge remote-tracking branch 'eric/fix-return-for-set' into bugfix/fi…

…x-return-for-set
  • Loading branch information...
2 parents 67e059b + cdf1626 commit a2e34c5fdde2e2b2e172ae6ee19b5a50c70327af @copiousfreetime committed Nov 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/kjess/client.rb
View
4 lib/kjess/client.rb
@@ -77,7 +77,9 @@ def version
# Returns true if successful, false otherwise
def set( queue_name, item, expiration = 0 )
s = KJess::Request::Set.new( :queue_name => queue_name, :data => item, :expiration => expiration )
- send_recv( s )
+ resp = send_recv( s )
+
+ return KJess::Response::Stored === resp
end
# Public: Retrieve an item from the given queue

0 comments on commit a2e34c5

Please sign in to comment.