lib/tribe_em.rb in tribe_em-0.0.1 vs lib/tribe_em.rb in tribe_em-0.0.2

- old
+ new

@@ -6,10 +6,15 @@ require 'tribe_em/tcp_server' module Tribe module EM def self.start - @em_thread = Thread.new { ::EM.run {} } + @em_thread = Thread.new do + ::EM.run do + ::EM.kqueue = true if ::EM.kqueue? + ::EM.epoll = true if ::EM.epoll? + end + end return nil end def self.stop