Permalink
Browse files

Merge pull request #191 from nuts/master

Fix a bug in Concurrent::ContinuationQueue#poll where timeouts are floored to the nearest second.
  • Loading branch information...
2 parents 1f23bfe + 5c221f6 commit eafa0333f5666046c63c2e6e9e227276841882fb @michaelklishin michaelklishin committed Mar 3, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bunny/concurrent/continuation_queue.rb
@@ -21,7 +21,7 @@ def pop
def poll(timeout_in_ms = nil)
if timeout_in_ms
- Bunny::Timeout.timeout(timeout_in_ms / 1000, ::Timeout::Error) do
+ Bunny::Timeout.timeout(timeout_in_ms / 1000.0, ::Timeout::Error) do
@q.pop
end
else

0 comments on commit eafa033

Please sign in to comment.