Skip to content

Commit

Permalink
Dont call super for fibers
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Feb 18, 2011
1 parent 7e4e453 commit 6f64814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cramp/fiber_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f64814

Please sign in to comment.