Changeset 736

Show
Ignore:
Timestamp:
07/05/08 20:45:09 (5 months ago)
Author:
francis
Message:

EM#run now calls the passed-in block rather than scheduling it, when a reactor is already running.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/eventmachine.rb

    r697 r736  
    219219 
    220220                if reactor_running? 
    221                         (b = blk || block) and next_tick(b) 
     221                        (b = blk || block) and b.call # next_tick(b) 
    222222                else 
    223223                        @conns = {}