Permalink
Browse files

Dont call super for fibers

  • Loading branch information...
1 parent 7e4e453 commit 6f64814a9a40d81d22f50a1be65c0c0144a4ce48 @lifo lifo committed Feb 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cramp/fiber_pool.rb
View
@@ -22,11 +22,11 @@ module UsesFiberPool
# Overrides wrapper methods to run callbacks in a fiber
def callback_wrapper
- self.fiber_pool.spawn { super }
+ self.fiber_pool.spawn { yield }
end
def timer_method_wrapper(method)
- self.fiber_pool.spawn { super }
+ self.fiber_pool.spawn { send(method) }
end
end

0 comments on commit 6f64814

Please sign in to comment.