Skip to content

Commit

Permalink
ensure timeout is a float or nil or AR::Duration screws up select
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Feb 9, 2010
1 parent 30d01d6 commit 6280777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bertrpc/action.rb
Expand Up @@ -36,7 +36,7 @@ def read(sock, len, timeout)
end

def transaction(bert_request)
timeout = @svc.timeout
timeout = @svc.timeout && Float(@svc.timeout)
sock = connect_to(@svc.host, @svc.port, timeout)

if @req.options
Expand Down

0 comments on commit 6280777

Please sign in to comment.