Skip to content

Commit

Permalink
lambda instead of proc to handle return correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Camille Meulien committed Dec 19, 2011
1 parent e2576eb commit 5716ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/em-synchrony/amqp.rb
Expand Up @@ -18,7 +18,7 @@ def sync &blk
end

def sync_cb fiber
Proc.new do |*args|
lambda do |*args|
if fiber == Fiber.current
return *args
else
Expand Down

0 comments on commit 5716ad1

Please sign in to comment.