Permalink
Browse files

Correctly mark jobs that aren't actually reserved.

  • Loading branch information...
1 parent 8915c23 commit f1c14a46ec1447c3c91f3b99a37627a16a702755 Keith Rarick committed Jul 21, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/beanstalk-client/connection.rb
@@ -194,7 +194,7 @@ def read_job(word)
id, bytes = check_resp(word).map{|s| s.to_i}
body = read_bytes(bytes)
raise 'bad trailer' if read_bytes(2) != "\r\n"
- [id, body]
+ [id, body, word == 'RESERVED']
end
def read_yaml(word)

0 comments on commit f1c14a4

Please sign in to comment.